tsd-template
tsd-template copied to clipboard
Problems debugging
I've encountered a few issues with debugging using this template. Running the default Debug tasks produces the following error:
'"<Project path>/app/build/default/dmengine.exe"' is not recognized as an internal or external command, operable program or batch file.
The Defold executable is not anywhere in the build folder, so I changed the path in launch.json to a dmengine.exe that I obtained from another ts-defold template. It managed to launch initially, but then it crashed.
INFO:DLIB: Log server started on port 57107
INFO:ENGINE: Target listening with name: <Stuff>
INFO:ENGINE: Engine service started on port 8001
INFO:GRAPHICS: Installed graphics device 'ADAPTER_FAMILY_OPENGL'
INFO:ENGINE: Defold Engine 1.8.0 (9141d9d)
INFO:DLIB: Initialized Remotery (ws://127.0.0.1:17815/rmt)
INFO:ENGINE: Loading data from: <ProjectPath>/app/build/default
WARNING:RESOURCE: No resource loaders mounted that could match uri <Project Path>/app/build/default
INFO:CRASH: Successfully wrote Crashdump to file: C:\Users\<Me>\AppData\Roaming\Defold/_crash
ERROR:CRASH: CALL STACK:
ERROR:CRASH: 0 0x7FF77CBF3E99 Particle_StartInstance <unknown>:0
ERROR:CRASH: 1 0x7FF77CBF3E99 Particle_StartInstance <unknown>:0
ERROR:CRASH: 2 0x7FF77CBF3E99 Particle_StartInstance <unknown>:0
ERROR:CRASH: 3 0x7FF77CBF3E99 Particle_StartInstance <unknown>:0
ERROR:CRASH: 4 0x7FF8E63F42E0 __chkstk <unknown>:0
ERROR:CRASH: 5 0x7FF8E636D9D0 RtlFindCharInUnicodeString <unknown>:0
ERROR:CRASH: 6 0x7FF8E63F33D0 KiUserExceptionDispatcher <unknown>:0
ERROR:CRASH: 7 0x7FF77CBF3E99 Particle_StartInstance <unknown>:0
ERROR:CRASH: 8 0x7FF77CBF3E99 Particle_StartInstance <unknown>:0
ERROR:CRASH: 9 0x7FF77CBF3E99 Particle_StartInstance <unknown>:0
ERROR:CRASH: 10 0x7FF77CBF3E99 Particle_StartInstance <unknown>:0
ERROR:CRASH: 11 0x7FF77CBF3E99 Particle_StartInstance <unknown>:0
ERROR:CRASH: 12 0x7FF77CBF3E99 Particle_StartInstance <unknown>:0
ERROR:CRASH: 13 0x7FF8E5502560 BaseThreadInitThunk <unknown>:0
ERROR:CRASH: 14 0x7FF8E63AAA20 RtlUserThreadStart <unknown>:0
ERROR:CRASH:
I can still run the project from within Defold, but I don't get debugging support.
You could try a different VSCode plugin like Defold Buddy. I don't think its automatic hot reload functionality will work, but it will work to run your game and pipe the logs back into VSCode. EDIT: Hot reload now works too.