DEV Question. Local Server , how to debug a custom node w/o restarting server. #748
Replies: 4 comments
-
I would also like to know the answer from some of the senior developers :) |
Beta Was this translation helpful? Give feedback.
-
For me restarting the server is pretty fast, because after the first run all python files stay cached in the RAM by the OS, so just a few seconds, most of the time it is like 5-6 seconds to restart, but it would be nice to have a faster way of doing it anyway. Btw, I use linux ubuntu, I don't know if other OS works in that same way regarding file caching, for me even the safetensor is cached by the OS and load fast after the restart. |
Beta Was this translation helpful? Give feedback.
-
Sorry to necro an old thread, but in case anyone else comes across this thread, here is a decent guide on getting debugging running. Method 1 with a portable comfyui works well and restarts quickly, especially if you add the restart button to the menu in the second link. https://civitai.com/articles/3654/a-programmers-guide-on-debugging-comfyui-workflow https://www.reddit.com/r/comfyui/comments/18tvhqc/is_there_a_restart_server_shortcut/ Debugging python works well, I haven't figured out JavaScript debugging however. |
Beta Was this translation helpful? Give feedback.
-
Hello, Everyone!
I'm new here. If i write in wrong tree, please point me were to ask dev questions, thanx.
So, I'm make a custom node and making constant changes to script.
Is it any way to re-run just edited (.py) custom script, W/O restarting server?
It take too much time even locally.
I tried to delete pychon cache, but no luck.
Refreshing a page, not helps.
Beta Was this translation helpful? Give feedback.
All reactions