NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 8 9 10 11 12 … 93 Next »
Debugging without a stack trace

 
  • 0 Vote(s) - 0 Average
Debugging without a stack trace
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#1
2012-12-15, 05:24 PM
Showing (yet again) my inexperience with C#, but how do you properly debug exceptions being thrown when there's no stack trace to lead you to where it's being thrown from? I guess I'm just too used to Java Rolleyes

This has cropped up here (http://forums.nextpvr.com/showthread.php...in-System):

[ATTACH=CONFIG]35191[/ATTACH]

Iain
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#2
2012-12-15, 05:48 PM
Only thing I can suggest is go to the project Properties -> Build -> Advanced and change "Debugging Info" from "None". That will output a pdb file when you recompile and the stack trace will show in the NPVR logs.

Or just have him download the modified plugin that I did at http://forums.nextpvr.com/showthread.php...-functions . I included a pdb file so that should give you what you need (I'll shoot you the code modifications).
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#3
2012-12-15, 05:55 PM
I've always included pdb files with my plugins though.

Iain
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#4
2012-12-15, 06:06 PM (This post was last modified: 2012-12-15, 06:11 PM by whurlston.)
Huh, then I'm as stumped as you are.

Maybe put a catch block around "Updating uiDrives args" and whatever is after it?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,133
Threads: 957
Joined: May 2006
#5
2012-12-15, 07:01 PM
Is the error in the catch itself?

Martin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#6
2012-12-15, 07:35 PM
Could be, but I've no idea which one. It doesn't necessarily seem to be the one that's last in the log file, as they've now posted another one that shows a different set of outputs.

Maybe I can wrap it at the highest level - probably where I fire off the background thread to collect all the different bits of info - and hope that catches it.

One of these days I really should read a book on C# Big Grin

Iain
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#7
2012-12-15, 07:58 PM
imilne Wrote:One of these days I really should read a book on C# Big Grin
That's on my todo list as well. Big Grin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#8
2012-12-15, 08:03 PM
Me too Big Grin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,133
Threads: 957
Joined: May 2006
#9
2012-12-15, 10:10 PM
They have books?

Martin
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#10
2012-12-15, 10:19 PM
imilne Wrote:One of these days I really should read a book on C# Big Grin
I wouldn't bother - I bought one and read it cover to cover - didn't do me any good... :mad:

Alex
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Debugging an appcrash imilne 12 5,654 2015-01-16, 03:04 AM
Last Post: bgowland

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode