Comments (3)
google "remote debug a python script in vscode"
I think this is what you're looking for
https://code.visualstudio.com/docs/python/debugging
https://github.com/microsoft/debugpy
and a guide
https://stackoverflow.com/questions/73378057/how-to-debug-remote-python-script-in-vs-code
it should be possible for you to configure your vs code to connect to SSH server that can launch webui in debug mode and have your vsocde conect to the debug server
note I have never tried doing this myself
these days in most IDEs basically automatically setup the debugging environment as an option for convenience, but essentially what's going on under the hood is that a python script is launch with debug modules enable, the IDE then connects to the debug server with allows you to setup breakpoints in the code editor
I dont use VS code for python much so not to familiar, but I know it's possible setup remote debugging in pycharm, so I would expect it should also be possible in VS code
as far as I'm aware debugging is generally something that you (the developer) should configured and enabled by launching the python script with a debugging module enabled, and it is not something that a project should provide as a future
debugging is not something that you should enable if you're not actively doing debugging as sometimes debugging itself can lead to issues and performance lost
from stable-diffusion-webui.
google "remote debug a python script in vscode" I think this is what you're looking for https://code.visualstudio.com/docs/python/debugging https://github.com/microsoft/debugpy and a guide https://stackoverflow.com/questions/73378057/how-to-debug-remote-python-script-in-vs-code
it should be possible for you to configure your vs code to connect to SSH server that can launch webui in debug mode and have your vsocde conect to the debug server
note I have never tried doing this myself
these days in most IDEs basically automatically setup the debugging environment as an option for convenience, but essentially what's going on under the hood is that a python script is launch with debug modules enable, the IDE then connects to the debug server with allows you to setup breakpoints in the code editor
I dont use VS code for python much so not to familiar, but I know it's possible setup remote debugging in pycharm, so I would expect it should also be possible in VS code
as far as I'm aware debugging is generally something that you (the developer) should configured and enabled by launching the python script with a debugging module enabled, and it is not something that a project should provide as a future
debugging is not something that you should enable if you're not actively doing debugging as sometimes debugging itself can lead to issues and performance lost
I didn't know a1111 has any debug servers enabled by default. I'll try installing some debugging modules and run it on launch.py
from stable-diffusion-webui.
I didn't know a1111 has any debug servers enabled by default.
NO webui dose not and should not have debug servers
but Python itself does have modules that are used for debugging https://docs.python.org/3/library/pdb.html
and there are packages that enables more convenient debugging that are commonly integrated with the IDE
(like pydevd and debugpy)
with these stuff you should be able to run ANY a debugger (debuger server)
you can then connect to the debugger serve with an IDE that allows you to easily interact with the debugger like adding breakpoints
this is in most cases these days done "Automatically" when you set up a python development environment like using vs code or pycharm
so for ANY python script (not just webui) in most cases you should just configured your ID correctly to Launch the python script with debugger enabled
unless you're doing some advanced stuff which the default configuration does not support you should don't need to do an understand much
note I never tried to fully understand how debugger actually works so take my information with a grain of salt
most of us just launch with debug option that is pre-configured with an IDE, we don't try to understand how debugger actually functions
from stable-diffusion-webui.
Related Issues (20)
- [Feature Request]: Keep file name toggle on extras batch from directory HOT 1
- [Bug]: AttributeError: 'NoneType' object has no attribute 'lowvram' HOT 5
- OSError: Can't load tokenizer for 'google/t5-v1_1-xxl'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'google/t5-v1_1-xxl' is the correct path to a directory containing all relevant files for a T5TokenizerFast tokenizer. HOT 18
- 如何增加关键词的审核判断呢,例如对接百度的内容审核 HOT 1
- 免费的stable diffusion API, 支持playground, API调用 HOT 2
- [Feature Request]: Update gradio HOT 2
- [Bug]: DPM++ 3M SDE Karras, DPM++ 2M SDE Karras does not appear in Sampling method HOT 2
- [Bug]: Upscaler.py causes infinite loop (fix inside) HOT 2
- [Feature Request]: Auro Flow (Model Support)
- [Bug]: SD3 LoRA HOT 1
- [Feature Request]: clarify in the reamd to set webui.sh. to executable HOT 1
- [Bug]: Git -C command is not recognized by some git versions HOT 3
- [Feature Request]: samplers to be more logically listed HOT 1
- [Bug]: Networkx version error on Ubuntu 20.04 HOT 3
- [Bug]:
- [Bug]: sd_hypernetwork_strength no longer present as an option in quicksettings list
- [Bug]: Installation stalls figuring out if python is installed. HOT 1
- [Issue]: RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper_CUDA__index_select) HOT 5
- [minor Feature Request]: checkmark in model list HOT 7
- [Bug]: RuntimeError: Inplace update to inference tensor outside InferenceMode is not allowed.You can make a clone to get a normal tensor before doing inplace update.See https://github.com/pytorch/rfcs/pull/17 for more details. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion-webui.