Tag Archive: Visual Studio Code


  • Download and install VS Code.
  • Type Ctrl + Shift + P and type Install extensions.
  • Select Debugger for NWjs and click Install.
  • Type Ctrl + Shift + P and type NWjs and select NWjs Install from the dropdown menu.
  • Select File from the menu and Open Folder and choose a folder where your RMMZ project is stored.
  • Go to Run -> Add Configuration, then select NWJs from the dropdown menu.
  • Add a configuration to launch.json. launch.json should look something like this afterwards:
    {
        "version": "0.2.0",
        "configurations": [
            {
                "type": "nwjs",
                "request": "launch",
                "name": "Launch NWjs",
                "nwjsVersion": "any",
                "webRoot": "${workspaceFolder}",
                "reloadAfterAttached": true
            },
            {
                "type": "nwjs",
                "request": "attach",
                "name": "Attach to NWjs",
                "port" : 9222,
                "webRoot": "${workspaceFolder}",
                "reloadAfterAttached": true
            }
        ]
    }
    
  • Backup packages.json and then change chromium-args to the following value
    "--remote-debugging-port=9222"
    Every time you open your RMMZ project, package.json will be overwritten, so keep a copy of your file with the debugging port handy.
  • Now go to the Run and Debug tab (CTRL + SHIFT + D) and change Launch NWjs to Attach to NWjs in the upper left corner.
  • Now, start Playtest in RPG Maker MZ. Check if package.json is still correct and then press the play button next to Attach to NWjs. (In the future, you can start the debugger by pressing F5.)

Original Blog Post for RPG Maker MV: https://forums.rpgmakerweb.com/index.php?threads/debug-rmmv-plugins-with-vs-code.99980/

  • Install Haskell from https://www.haskell.org/platform/ and Visual Studio Code.
  • In Visual Studio Code click on Extensions and install the Haskero plugin
  • Go to your workspace directory for your Haskell projects and start a terminal/console window.
  • Create a new project by entering the following commands:
    • stack new MyFirstHaskellProject new-template to initialize a new project.
    • Go to the directory of the new project.
    • Type stack build
    • Type stack build intero
    • Type code . to launch Visual Studio Code
    • After Visual Studio Code has launched, type stack build --file-watch in your terminal/console window to start a listener that automatically builds haskell files when changed.
  • Go to the opened Visual Studio Code Window and launch a terminal.
  • Write your first Haskell program and save the file
  • Open a new terminal in Visual Studio Code.
  • Start your program by typing stack exec .\.stack-work\install\a0555f17\bin\MyHaskellProject-exe.exe You probably have to search for the exact path to your exe file.
  • There’s a good Haskell tutorial here.