No line numbers in stacktrace on OS X with DNX - dnxcore50 - am I missing a PDB-file?

159 views Asked by At

Trying out a Console-application in OSX, by having installed .NET for Mac. The stack trace in the Terminal looks as follow:

System.NullReferenceException: Object reference not set to an instance of an object
  at ConfigEditor.XmlLoader.Run () [0x00000] in <filename unknown>:0 
  at ConfigEditor.Program.Main () [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 

How can I get the stack trace to output the file name and line numbers? Do I need a pdb-file as in Windows, and how do I get one?

My project consists of three files at this time:

  • Program.cs
  • project.json
  • project.lock.json

And I run the app with dnx . run.

0

There are 0 answers