mixed debug between JavaScript and Rust. #4389
bvanjoi
started this conversation in
Show and tell
Replies: 2 comments 14 replies
-
really nice explanation |
Beta Was this translation helpful? Give feedback.
0 replies
-
不知为何,在我的电脑上无法正常断点,总是自动结束 |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This discussion aims to illustrate the method for mixed debugging between JavaScript and Rust.
Prerequisites
To illustrate this process, I'll use an example. Let's start by introduce the environment and example I have used.
rspack build ${projectRoot}/examples/basic
Firstly, you need to build rspack in debug mode. To do this, execute the following commands in the project's root directory:
Configure
launch.json
in vscodeIt's necessary to configure two debug configurations within
.vscode/launch.json.
Next, we can utilize compounds to amalgamate the two commands:
Finally, your
launch.json
should appear as follows:Debugging Attempt
Next, we can introduce some breakpoints and commence debugging.
The result appears as follows:
2023-10-23.13.59.08.mov
Beta Was this translation helpful? Give feedback.
All reactions