[python-win32] Debugging python with something like VS code, when working with flask web framework

2021-08-13 Thread jacob kruger

Hi there


I am specifically trying to sort out debugging code and processes when 
working with the flask web development framework, while working with VS 
code insiders.



Now, following things like the following steps, but, specifically using 
an external terminal, I can get it to pause on breakpoints, etc. when 
executing normal code, but, when trying to run it against the flask 
module process, it seems to just execute the code and not manage to 
attach to the execution processes, etc.?




Python and flask tutorial in VS code:

https://code.visualstudio.com/docs/python/tutorial-flask 




Or, the more generic debugging implementation tutorial:

Getting started tutorial for python and VS code:

https://code.visualstudio.com/docs/python/python-tutorial#_configure-and-run-the-debugger 




This is working on a windows 10 64 bit pro machine, and, just want to 
know if anyone has suggestions with regards to implementing debugging 
when working with web development frameworks like flask, pyramid, etc.?



TIA


Jacob Kruger
+2782 413 4791
Skype: BlindZA
"Resistance is futile...but, acceptance is versatile..."
"...resistance is futile...but, acceptance is versatile..."
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


[python-win32] Debugging python with something like VS code, when working with flask web framework

2021-08-13 Thread Jacob Kruger
Hi there

I am specifically trying to sort out debugging code and processes when
working with the flask web development framework, while working with VS
code insiders.

Now, following things like the following steps, but, specifically using an
external terminal, I can get it to pause on breakpoints, etc. when
executing normal code, but, when trying to run it against the flask module
process, it seems to just execute the code and not manage to attach to the
execution processes, etc.?

Python and flask tutorial in VS code:
https://code.visualstudio.com/docs/python/tutorial-flask

Or, the more generic debugging implementation tutorial -

Getting started tutorial for python and VS code:

https://code.visualstudio.com/docs/python/python-tutorial#_configure-and-run-the-debugger

This is on a windows 10 64 bit pro machine, and, just want to know if
anyone has suggestions with regards to implementing debugging when working
with web development frameworks like flask, pyramid, etc.?

TIA

Jacob Kruger
+2782 413 4791
Skype: BlindZA
"Resistance is futile...but, acceptance is versatile..."
"...resistance is futile...but, acceptance is versatile..."

___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Pywin32 local variable

2021-08-13 Thread Greg Ewing

On 12/08/21 9:17 pm, Salih KUYUMCU via python-win32 wrote:
I create a String 
value before the methods and try to return these values in another 
method. I get the problem local variable 'xxx' referenced before 
assignment.


It sounds like you may want to store the value in an attribute
of an object instead of a local variable.

If you show us your code and the exact error message you're
getting, we will be able to help you better.

--
Greg
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32