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

Attache process debugging support #27

Open
36yang opened this issue Sep 12, 2020 · 6 comments
Open

Attache process debugging support #27

36yang opened this issue Sep 12, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@36yang
Copy link

36yang commented Sep 12, 2020

I hope it provide Attache process debugging support,

@tomblind tomblind added the enhancement New feature or request label Oct 11, 2020
@tomblind
Copy link
Owner

This will require remote debugging support to work (#2).

@astrochili
Copy link

astrochili commented Mar 15, 2021

I think to try your debugger with Defold, but I don't have any ways to run Defold debug build with command line, only manually with UI.

Waiting for remote debugging.

Look at mobdebug for inspiration. Unfortunately, there is no any text editor with a mobdebug extension, but it's simple and stable with ZeroBraine Studio and Defold built-in editor.

@hendrikp
Copy link

hendrikp commented Dec 7, 2021

I think this would work with the named pipe support now?

@tomblind
Copy link
Owner

tomblind commented Dec 7, 2021

This may be possible now but I'll have to investigate. Attaching presumes that the Lua program is running when the debugging extension starts, which means Lua needs to create the pipe. I'm not sure that's possible without extra libraries (especially on windows).

@hendrikp
Copy link

hendrikp commented Dec 7, 2021

the lua program could probably just don't debug stuff until the pipe exist (the existence of the pipe itself could be the signal to start debugging)

@tomblind
Copy link
Owner

tomblind commented Dec 8, 2021

Polling for the pipe to exist would likely be prohibitively slow. Supplying a polling method to the environment to call at regular intervals might be possible (similar to what's suggested in #32), but this would require the user to call the hook in an appropriate place.

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

No branches or pull requests

4 participants