Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
en:debugging_of_scripts_with_visual_studio_2017 [2019/06/16 12:28]
hlinke [The VEGASPYTHON Config File]
en:debugging_of_scripts_with_visual_studio_2017 [2019/06/16 12:56] (aktuell)
hlinke [Description of the Config parameters]
Zeile 43: Zeile 43:
 ==== Description of the Config parameters ==== ==== Description of the Config parameters ====
 === PythonPath === === PythonPath ===
- 
 as default Python is installed in the subdirectory \Python37 of the VEGASPython installation directory. as default Python is installed in the subdirectory \Python37 of the VEGASPython installation directory.
 This is good for users who do not want to deal with Python. This is good for users who do not want to deal with Python.
 If you have your own Python Installation(it must be Python 3.7.x) the you can here specify the directory where it resides. If you have your own Python Installation(it must be Python 3.7.x) the you can here specify the directory where it resides.
 +
 Example: Example:
 "PythonPath": "C:\\Python37" "PythonPath": "C:\\Python37"
 +
 +If the parameter is empty 
  
 Do not forget to double "\" in the Path. Do not forget to double "\" in the Path.
 +
 +=== debugmode===
 +debugmode is the main switch for the debugging parameters.
 +
 +"debugmode": false
 +
 +The debug parameters are ignored
 +
 +"debugmode": true
 +
 +The debug parameters are used.
 +
 +=== debugprecmd ===
 +Defines Python commands that need to be executed before the start of the Python script.
 +Here you can add commands that are needed by the debugger to start the debugging and connect with the embedded Python interpreter.
 +
 +Example:
 +
 +"debugprecmd": "import wingdbstub;print ('Wing Debug started')"
 +
 +Imports the wingdbstub.py that is needed by WING Python IDE to start the debugging. You can remove this when you do not use WING Python IDE.
 +
 +=== debugpostcmd ===
 +Defines Python commands that need to be executed after the end of the Python script.
 +Here you can add commands that are needed by the debugger to stop the debugging.
 +
 +Example:
 +
 +"debugpostcmd": "print ('Debug ended')"
 +
 +=== debugusereload ===
 +As explained above you need to restart VEGAS after any change in the Python script.
 +
 +To avoid this restart and reduce the turn arround times VEGASPython can use the "reload" command to load a script.
 +
 +Reloading a module is not a clean concept and can create some issue. Please read the chapter reload() in the Python documentation before using this fundtion:
 +[[https://docs.python.org/3/library/imp.html?highlight=reload#imp.reload]]
 +
 +example:
 +
 +"debugusereload": true
 +
 +
 +
 +
 +"debugusereload": true
 +
 +
 +
  
  

Andere Sprachen
QR-Code
QR-Code en:debugging_of_scripts_with_visual_studio_2017 (erstellt für aktuelle Seite)