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

debugging and code editing #260

Closed
flat-eric147 opened this issue May 6, 2021 · 2 comments
Closed

debugging and code editing #260

flat-eric147 opened this issue May 6, 2021 · 2 comments
Assignees
Labels

Comments

@flat-eric147
Copy link

I frequently use the Visual Studio Code remote debugging functionality in conjunction with ClearScript's V8 engine, which works great! I just wonder what it would take to also be able to modify the code inside Visual Studio Code on the fly? It would be so handy as you get autocompletion, syntax highlighting etc and all that for free. BTW, on the application side I use AvalonEdit for editing/writing the code. I don't know if the websocket debugging protocol even allows to send over the modified code, so just asking :-p

@ClearScriptLib
Copy link
Collaborator

ClearScriptLib commented May 6, 2021

Hi @flat-eric147,

For V8 debugging, the host (ClearScript in this case) is only responsible for sending and receiving messages to and from the debugger. It does not – and as far as we know, it cannot – involve itself in any other way.

We just did some script debugging in ClearScript using Chrome DevTools (in Microsoft Edge 😉) and were able to edit scripts on the fly without problems. In fact, the modified scripts persisted even after we detached the debugger.

Could your issue be specific to Visual Studio Code? Could you give DevTools a try?

Thanks!

@ClearScriptLib
Copy link
Collaborator

Please reopen this issue if you have additional thoughts or findings. Thank you!

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

No branches or pull requests

2 participants