Skip to content

Commit d8eafce

Browse files
committed
Deploying to gh-pages from @ 8181eac 🚀
1 parent 23adfb4 commit d8eafce

File tree

130 files changed

+195
-136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+195
-136
lines changed

404.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

500.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.
102 KB
Binary file not shown.

Unity/injectable/Build/WebInjectable.framework.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
76 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"pageProps":{"content":"[[\"$r\",\"MaxWidth\",\"last\",{\"children\":[[\"$r\",\"p\",null,{\"children\":[\"In order to debug React code, you must first install the ClearScript engine. This can be done in the \",[\"$r\",\"code\",null,{\"children\":\"React > Quick Start\"}],\" window, or running the following command in your Unity project root:\"]}],\"\\n\",[\"$r\",\"TerminalBlock\",null,{\"children\":[\"$r\",\"p\",null,{\"children\":\"npx openupm-cli add com.reactunity.clearscript\"}]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"Then, in the inspector window, you must choose engine type as ClearScript and select an appropriate debug mode.\"}],\"\\n\",[\"$r\",\"img\",null,{\"src\":\"/images/docs/debug.png\",\"alt\":\"Debug image\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"There are 3 debug modes you can choose from:\"}],\"\\n\",[\"$r\",\"ul\",null,{\"children\":[\"\\n\",[\"$r\",\"li\",null,{\"children\":[[\"$r\",\"code\",null,{\"children\":\"None\"}],\": ClearScript will run the code normally and won’t allow it to be debugged.\"]}],\"\\n\",[\"$r\",\"li\",null,{\"children\":[[\"$r\",\"code\",null,{\"children\":\"Debug\"}],\": ClearScript will run the code with debugger and allow a debugger to connect anytime.\"]}],\"\\n\",[\"$r\",\"li\",null,{\"children\":[[\"$r\",\"code\",null,{\"children\":\"DebugAndAwait\"}],\": In addition to running code with debugger, ClearScript will freeze the program and wait for a debugger to connect. If a debugger is not connected within 10 seconds, ClearScript will abort the debugging process and continue to run normally. Note that this option will freeze the Unity Editor for at least 10 seconds if you don’t connect a debugger.\"]}],\"\\n\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"Now, when you run your UI code, ClearScript will start the debugger in 9222 port. You can connect to this debugger in VSCode. Your VSCode launch configuration can be like:\"}],\"\\n\",[\"$r\",\"pre\",null,{\"children\":[\"$r\",\"code\",null,{\"className\":\"language-json\",\"children\":\"{\\n \\\"name\\\": \\\"Attach to ClearScript on port 9222\\\",\\n \\\"type\\\": \\\"node\\\",\\n \\\"port\\\": 9222,\\n \\\"request\\\": \\\"attach\\\",\\n \\\"pauseForSourceMap\\\": true,\\n \\\"resolveSourceMapLocations\\\": null,\\n \\\"skipFiles\\\": [\\n \\\"<node_internals>/**\\\",\\n \\\"node_modules/**\\\"\\n ]\\n}\\n\"}]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[[\"$r\",\"a\",null,{\"href\":\"https://github.com/ReactUnity/full-sample/blob/main/react/.vscode/launch.json#L6\",\"target\":\"_blank\",\"rel\":\"nofollow noopener noreferrer\",\"children\":\"Here\"}],\" is a sample \",[\"$r\",\"code\",null,{\"children\":\"launch.json\"}],\" file. Note that VSCode may not resolve sourcemaps correctly without the \",[\"$r\",\"code\",null,{\"children\":\"resolveSourceMapLocations\"}],\" line.\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"Now, you can add breakpoints in your source code and start debugging.\"}]]}]]","toc":"[]","meta":{"title":"Debugging React code"}},"__N_SSG":true}
File renamed without changes.

0 commit comments

Comments
 (0)