Hi, anybody else has issues with Breakpoints (not working) on 1.7.2-1.8?
I have one machine where breakpoints are not doing anything and another one where it’s complaining about CC_EDITOR not being defined.
Using VS Code Version 1.19.1 and CC 1.8.0.
Ok, so it seems that I have found some kind of solution (at least it works for me).
Before installing new Cocos Creator:
- in VSCode remove all breakpoints from the project
- Close VSCode
- Go to folder project, and remove the entire .vscode folder (yes, this also includes launch.json and tasks.json)
- Remove everything inside folders /node, /library. The new creator will rebuild it.
Install new creator:
- Copy new creator
- Open new creator
- Select initial Scene
- Install VSCode Workflow (all steps from top to bottom).
- add isbuildingtask=true if needed (only if you build from VSCode)
Execute once without breakpoints.
Now you should be able to use breakpoints anywhere in your project. This is what I had to do from 1.5.2 to 1.7.2 but it may not needed from now on. Maybe its just a thing when migrate from older version to anything beyond 1.6
Hope it works for you.
Interesting. I’ll check that out once I’m back at work tomorrow.
Let me know if it works.
It worked! Thanks for your help!
Good to know!!
@slackmoehrle it seems there is something wrong when upgrading projects to a new version that may impact the way we work with VSCode. Check the posts please. It took a few painful weeks to get a solution, and I believe this may impact other developers too. Can you please tell the team?
I talked with the engineering team and it turns out we are no longer maintaining the compatibility with VS Code.
As VSCode is no longer supported. What editor do you use?
Very sad news. VSCode is one of the best editors and working with it is way better than just Chrome dev tools. This is one of the things that may change my mind working with Creator. You dont provide a good editor and now you dont support VSCode? Without any explanation? Im confused.
VSCode supported was maintained by an employee that no longer works for the company. This is an HR issue. I’ll talk more with the engineering team.