-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debugging #11
Comments
@kolombet |
I'm looking into getting sourcemaps and possibly breakpoints working. Hopefully soon! Thanks. |
@kolombet @Majirefy I've been able to get it to source map to the individual files, however it maps to the compiled typescript, not the typescript itself... any idea how to get it to map to the typescript, I'm having no luck and searches isn't helping ? The compiled typescript is pretty close to the actual code, so it'd definitely be better than nothing if getting typescript mapping is not possible at the moment. Let me know if you'd like the current mapping (to the compiled typescript) committed or if you'd rather wait for typescript mapping. |
What do you mean the compiled Typescript? Ideally all you need is an inline-sourcemap in the bundled file. |
See #18 The following are instructions to get this working with Visual Studio Code and Chrome. Tested and working on Arch Linux.
Here is my {
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:9000",
"webRoot": "${workspaceRoot}",
"userDataDir": "${workspaceRoot}/.vscode/chrome",
"runtimeExecutable": "/usr/bin/google-chrome-stable"
},
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 9222,
"webRoot": "${workspaceRoot}"
}
]
} ( |
By compiled TypeScript I mean the JS that gets generated. I only got it to show where the issue was in the JS that's generated, not the original TS. I'll merge your update in and see if that satisfies those that need it. Thanks. |
I'll test the workflow on Windows tomorrow and update the readme accordingly :) |
@Nepoxx Thanks for the help! |
I can't see sourcemaps when debugging in chrome, only plain js. How to debug code with this template?
The text was updated successfully, but these errors were encountered: