I want to write a debug file that when my program crashes my application writes the line and where it crashes from to a log file.

For this to work I with to put /debug into the command line arguments property.

Does anybody no how I would go about doing this.

Thanks In advance

Daniel