naverz / zepeto-script-sample

38 stars 7 forks source link

The ts file can't debugging in vscode,breakpoint is unbound but I can take the logs in output #80

Closed Nowpaper closed 2 years ago

Nowpaper commented 2 years ago

Follow this tutorial to debug,but the .ts file can't debugging in vscode https://studio.zepeto.me/guides/debugging

but ... I can use 'chrome://inspect' debugging in Chrome Devtools for .js files Puerts says that higher versions of vscode cannot be debugged, and it still cannot be debugged after trying to downgrade

NoahHahm commented 2 years ago

why should I use Chrome Devtools? debugging is supported in the latest version of VSCode.

Nowpaper commented 2 years ago

I don't know why can't debugging in vscode , the breakpoint is gray when it's running, if project play in Unity Editor after run debugging if run debugging before play project then vscode debugging will be stop

Nowpaper commented 2 years ago

https://github.com/Tencent/puerts/blob/master/doc/faq.md It mentions that versions after 1.60 cannot be debug,I tried to set it like this but it still didn't work

Nowpaper commented 2 years ago

Snipaste_2021-11-23_02-21-10

vscode-debugadapter-4f06ae6f.json.gz I upload log file to this issue , you can drop it into https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it contains.

x4cf commented 2 years ago

new sample! https://github.com/naverz/zepeto-multiplay-example

your project, in windows, not working properly, maybe

x4cf commented 2 years ago

now or today?, BreakingPoint, not working well

*I am not official developer

NoahHahm commented 2 years ago
capture

vscode.zip

attach information and photos of the .vscode editor that is created in the project. tested on windows 10.

NoahHahm commented 2 years ago

I have identified the problem in the sample project.

Nowpaper commented 2 years ago

now or today?, BreakingPoint, not working well

*I am not official developer

No,I still can't work it

Nowpaper commented 2 years ago

vscode.zip

attach information and photos of the .vscode editor that is created in the project. tested on windows 10.

My project's setting is same for you ,and vscode version is 1.62.3 this screenshot shows the version and breakpoints. that debugger attach is display in the unity log panel ,but breakpoint is gray and not working

Snipaste_2021-11-23_17-52-13

NoahHahm commented 2 years ago

we fixed the bug. we will be releasing a hotfix soon. please wait.

NoahHahm commented 2 years ago

https://github.com/naverz/zepeto-script-sample/commit/81394b62c55104a99a9eed0163eb3d8d7afaae37

we fixed the issue. check it

Nowpaper commented 2 years ago

81394b6

we fixed the issue. check it

Good job! It's woriking now. I want to know why , because I have the same problem when using Puerts

NoahHahm commented 2 years ago

all internal architecture has been changed based on Puerts. So there may be differences.