You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debuggin works only with javascript, not typescript #104
Iirc, I had to set the mapping from JS to TS using an absolute rather than relative path in my tsconfig to get it to work, but then I could indeed debug from typescript directly. Haven't got the project in front of me to check, but if that doesn't work let me know and I'll see if I can find more details.
Here's an example tsconfig.json and .vscode/launch.json from a project where I used to debug in TS. I haven't used it in a while (since around January) so I haven't verified these with the latest version but hopefully it helps to verify your config.
I'm not sure exactly which of the options are required to have this functionality work, but I think what worked for me is having the rootDir/outDir set to relative paths, the sourceRoot set to the absolute path of the rootDir, and sourceMap set to true, the other options may not be necessary, but worth experimenting with if those don't work alone.
For the VS Code debug config, I also had sourceMaps set to true there (assuming you're using VS Code):
I tried playing around with these options, without success.
I'm using Windows btw, seeing your paths /home/ljp/godot/godot.x11.opt.tools.64 looks like your on a POSIX system.
maybe that's why it doesn't work?
Activity
lewiji commentedon Jun 3, 2021
Iirc, I had to set the mapping from JS to TS using an absolute rather than relative path in my tsconfig to get it to work, but then I could indeed debug from typescript directly. Haven't got the project in front of me to check, but if that doesn't work let me know and I'll see if I can find more details.
aabluedragon commentedon Jun 4, 2021
Nothing helps, including writing the absolute path in
sourceRootorrootDirentries in tsconfig.lewiji commentedon Jun 5, 2021
Here's an example
tsconfig.jsonand.vscode/launch.jsonfrom a project where I used to debug in TS. I haven't used it in a while (since around January) so I haven't verified these with the latest version but hopefully it helps to verify your config.tsconfig.jsonI'm not sure exactly which of the options are required to have this functionality work, but I think what worked for me is having the
rootDir/outDirset to relative paths, thesourceRootset to the absolute path of the rootDir, andsourceMapset to true, the other options may not be necessary, but worth experimenting with if those don't work alone.For the VS Code debug config, I also had
sourceMapsset to true there (assuming you're using VS Code):.vscode/launch.jsonaabluedragon commentedon Jun 5, 2021
I tried playing around with these options, without success.
I'm using Windows btw, seeing your paths
/home/ljp/godot/godot.x11.opt.tools.64looks like your on a POSIX system.maybe that's why it doesn't work?
vexCoder commentedon Aug 7, 2022
Did you manage to find a solution for this?