-
Notifications
You must be signed in to change notification settings - Fork 147
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
How to debug using vscode debugger? #608
Comments
Hi @MarceloBritoWD! I should write up a debugging guide, that's a great idea. Is there something in particular you're having trouble debugging? |
Hi @jamonholmgren, thank you for answering me. I already solve the problem and was a bug that I had created, but I missed a way to debug my cli app, so basically found the solution with |
I'll work on this when I'm back from my Florida conference. |
Hi @jamonholmgren, may I ask, if you found the time to write some docs about debugging? I've started a new project following your docs by issuing I added a launch.json with the following configuration:
The app gets compiled and the debugger will be attached, but unfortunately it is debugging the compiled js files. |
For anyone else that comes across this, I was able to get debugging working by adding a call to the run() function at the end of the entry TS file (default generated file is cli.ts). The launch configurations program value should be the entry TS file (not the executable script in the bin folder). In my case I also needed to accept user input from the terminal so I also added the console configuration value.
|
Would definitely like to add more of this sort of guide to the docs. Thanks for the help @sawyerit. |
@jamonholmgren Have you considered the possibility of generating a launch.json that's included with the project when its generated, so people wouldn't have to do any trial and error, hunting on the internet, or reading of docs? |
It has a way to debug my cli using vscode or something like that? I didn't find any information about it.
The text was updated successfully, but these errors were encountered: