title: Configure launch command in Code::Blocks
body: <p>I recently discovered <a href="https://github.com/kripken/emscripten/wiki/" rel="nofollow noreferrer">Emscripten</a>, and after downloading it, I decided to see if I could get it to work with Code::Blocks, so that I could easily test my applications to see how they performed when running as JavaScript.</p>
  
  <p>I created a new compiler configuration, and set up all of the toolchain executables, except for the resource compiler (which doesn't seem to give me any problems), and the debugger. I wasn't really sure what to put in the debugger, because I remembered the debugger field as being a text-box. But when I looked, all that was there was a drop-down menu.</p>
  
  <p>I managed to find a "Debugger" menu in the "Settings" menu, and when I opened it, there was a button called "Create config".</p>
  
  <p><img src="https://i.stack.imgur.com/CTh3u.png" alt="Code::Blocks Debugger menu"></p>
  
  <p>I created a new configuration, and pointed the executable path to "node.exe" (which runs .js files). I then went back to the compiler settings, and chose my new debugger in the drop-down.</p>
  
  <p>I then tried to build and run a simple hello world application. But once it finished building, it gave me the message <code>Execution of '[my file] ' in '[my project folder] 'failed.</code> The actual build seemed to be successful, so I decided to manually run node.exe from the command line to see if I had configured the debugger incorrectly. And as I expected, it ran successfully.</p>
  
  <p>While I was glad that I had successfully configured the compiler, I still was confused as to why the app didn't want to run. I also set Emscripten to create HTML files instead, to see if Code::Blocks would somehow recognize the appropriate program, and open it in the web browser instead. Of course that didn't work either.</p>
  
  <p>What I am trying to figure out, is how I configure Code::Blocks' run command. Perhaps the debugger isn't even the right place to be looking. But I really need someone to help me figure out how I can configure this in Code::Blocks, as this is currently the only thing that is really giving me any trouble.</p>
  
  <p>Thanks. </p>