[PYTHON] Debug the script with Sakura Editor

Sakura Editor has a function to execute the script being edited by "Browse" assigned to ctrl + B,

  1. The shell ends as it is when an exception occurs
  2. Difficult to copy output
  3. The default program should be python.exe It is a little difficult to use.

You can do something like debugging by installing the following macro in Sakura Editor.

pythondebug.js


Editor.FileSave();
Editor.ExecCommand("python " + '"' + Editor.GetFilename() + '"', 1)
// '"'Is for when the path contains spaces

無題.png

It is output properly even when an exception occurs. You may be able to do it with ruby, JS, etc.

Recommended Posts

Debug the script with Sakura Editor
Display the script shortcut menu in the network editor
Examine Python script bottlenecks with the cProfile module
Print debug with PyScribe
Script that changes the length of the sound with REAPER
Enjoy competitive programming with AOJ using the popular editor SublimeText2
I replaced the Windows PowerShell cookbook with a python script.
[Maya Python] Crush the contents of the script 1 ~ Camera Speed Editor
Create an example game-like stage with just the Blender 2.80 script
Settings to debug the contents of the library with VS Code
Process the files in the folder in order with a shell script
[Python] Get the script execution directory with an absolute path
POST json with Python3 script
Kill the process with sudo kill -9
Debug Python with VS Code
Guess the password with klee
Debug with PEPPER python interpreter
gethostbyaddr () communicates with the outside
scraping the Nikkei 225 with playwright-python
Check the code with flake8
Calibrate the model with PyCaret
Call the API with python3.
Debug shared libraries with VScode
Process the contents of the file in order with a shell script
I tried sending an email from the Sakura server with flask-mail
Write a script to calculate the distance with Elasticsearch 5 system painless