views:

35

answers:

2

For debugging purposes it'd be nice if I could make my error page display clickable file names in exception stack traces that would open them up in my favorite editor. However this would require me to execute a full command line - a simple link to a file will not do. Can this be done?

The solution can be IE-only and it can use techniques that require full trust (I don't expect it to be otherwise anyway). People are only going to use this on localhost, I will in fact disable this functionality when viewing the page remotely.

A: 

Absolutely.

Ignacio Vazquez-Abrams
+2  A: 

You can add a new protocol to Windows as outlined here (hat tip to stereofrog for making me aware of this here).

This is especially nice because it works across browsers, and doesn't require any browser specific settings.

Just be careful with it - adding a new protocol handler opens potential, although very remote, vulnerabilities. When setting this up, never let the incoming URL be somehow a parameter to a generic command interpreter (like cmd). Always link it to an existing application that is not able to do anything destructive, not even through command line switches.

Pekka
Hooray! It will do! :) It says here that I will be able to accept your answer in 5min, so I'll so it then.
Vilx-