Skip to content
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? #1241

Open
unical1988 opened this issue Feb 4, 2025 · 1 comment
Open

How to debug using VSCode? #1241

unical1988 opened this issue Feb 4, 2025 · 1 comment

Comments

@unical1988
Copy link

I am following this tut: https://answer.apache.org/docs/development/ in order to set Answer on my local machine.
I want to remote debug it on the frontend side (Typescript) How to do that ?

I am launching the platform locally (localhost) using the following command from the source folder

go run cmd/answer/main.go run -C ./answer-data

@shuashuai
Copy link
Member

I didn't understand what you want, If you just want to debug the front-end content in vscode you can do this

  1. shilft+commd+D, click to create a launch.json
    Image
    choose Web application (chrome)
    Image
    Modify the port number 3000
    Image

  2. run cd ./ui pnpm start start development

  3. Add breakpoints where you need to debug, press F5 or click the debug icon to start debugging.
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants