Kozea / wdb

An improbable web debugger through WebSockets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edit mode

damendieta opened this issue · comments

Hi, I tried to use edit mode with .e but I wasn't able to use it right.

Could you please document this mode a little in the readme.

Thanks.

I would love an explanation of this too.

When I enable the file edition mode, I can modify the text in the source window. However no changes are ever made to the actual source files; The changes vanish if/when I disable the editing mode; and stepping through the code reveals the modified source is now out of sync with the original.

What is the purpose of this feature? I was hoping it was a way to temporally rewrite the file for that runtime, which would be an amazing feature. But I"m unsure.

I think [ctrl] + [s] saves the file.
Can you confirm? I'll update the help in this case.

As for why it is implemented: quick edit of files around an exception if you have no editor open and sadly no it does not patch the file in the runtime (it should be partly possible to reload some modules after edit but honestly it does work in trivial cases only).

Ah so it does, yes. Nice. :)

I suppose it'd be nice if there was a prompt when turning off edit mode, if there are unsaved changes.