Comments (7)
What platform did you debug on?
from cocos-engine.
What platform did you debug on?
MacOS, this problem should not be related to the system.
What I may not have made clear enough is that when debugging a project using VSCode, a single-step breakpoint does not allow access to the engine code because the source diagram path is wrong.
from cocos-engine.
debugging a project using VSCode
It sounds interesting, could i know how you use VSCode to debug engine code?
from cocos-engine.
Honey, this is a built-in feature of the engine...
i say if the project code has code similar to this.node.setPosition()
, then when I enter the function call with a single-step breakpoint, because it is the code of the engine part, an error will be reported and cannot be entered.
So why can debug normally in Chrome DevTools?
After my search, it seems that DevTools has an automatic redirection function, but VSCode does not.
So your sourcemap must be absolutely correct.
from cocos-engine.
Oh, good to know. I don't know and use it.
Thanks.
from cocos-engine.
Oh, good to know. I don't know and use it. Thanks.
You're welcome, by the way, it would be great if it could support debugging Editor Preview in VSCode. The simplest way would be to expose a debugging port.
Or going one step further, it would be great if you could debug at breakpoints regardless of whether it is in Playing Mode like Unity.
I know that Electron is a multi-process model, which can generally be implemented very simply through the Multi-target debugging function of VSCode. document
from cocos-engine.
Sounds good.
from cocos-engine.
Related Issues (20)
- [性能优化] 希望将 `batcher-2d.ts`文件中的 `walk` 方法改为非递归. HOT 5
- physx的mesh碰撞体不能正常缩放的bug与修复方式
- 问题:ScrollView 滚动事件回调接收到的是数字,然而EventType里没有数字的,只有字符串的。
- Support Tween.from and Tween.fromTo
- [feature] Reusable for internal actions in Tween and reusable for Tween
- Add an API for modify PHYSICS_2D_PTM_RATIO
- b2.PolygonShape is not a constructor HOT 2
- [3.8.2] The game frame rate using GPU particles on the native platform is lower than when using CPU particles HOT 1
- PhysX TerrainCollider wrong side sizes with rectangle Terrain.
- Intersection detection for Physics
- IOS Native audios issues HOT 1
- Support Windows SDK 10.0.19041.0 and above
- Let Tween System support any object type and string type support HOT 5
- Cannot call native C++ method from TypeScript HOT 3
- 强烈要求 让开发者可以选择 ts版本的 spine runtime. HOT 3
- 为node增加Tag字段,用来设置自定义数据,比addComponent好用些。 HOT 1
- ACTIVE_IN_HIERARCHY_CHANGED 事件不支持级联,希望优化事件派发,或者新增事件支持
- ENABLE_MULTI_TOUCH = false 时, 手机触控异常. HOT 8
- Node.EventType.TOUCH_END 事件回调抛异常时,会导致其他 UI 事件派发错乱 HOT 1
- Add Tween.complete/completeAll/completeAllByTarget API to make tween complete immediately HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocos-engine.