Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7768453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:55:02+00:00 2026-06-01T15:55:02+00:00

I am developing a WP7 app. The app has a pretty large XML Parsing

  • 0

I am developing a WP7 app.
The app has a pretty large XML Parsing method and a try/catch block around it. When an exception occurs I just get the causing method’s name from the exception’s stacktrace, but no line numbers.

So it is pretty annoying to debug in a 400+ LoC method.

My guess is that the pdb files are not deployed to the phone at all.

A workaround would be to split large methods into smaller ones and to use more and smaller try/catch blocks.

But is there any way to enable line numbers in Windows Phone 7 Exceptions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:55:03+00:00Added an answer on June 1, 2026 at 3:55 pm

    First of all, a 400+ LoC method is a bad practice, I would definitely recommend to split it.

    Little trick: if you’re using the debugger, just configure it to break on any exception (in Visual Studio, press Control + Alt + e, and check the ‘thrown’ checkbox in front of “Common Language Runtime Exceptions”. Then, when the exception is thrown, the debugger will automatically stop at the exception location.

    Now to answer your question, if you don’t have line numbers when compiling in debug mode, then there’s probably no practical way to get them. You can try injecting the pdb in the xap file, but I don’t think it’s worth the trouble.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing WP7 app. I met some unexpected behavior. I use PerformanceProgressBar from
currently I'm developing an app for WP7 but came across a little problem with
I'm currently developing a WP7 app, and I'd like it to talk with my
I am developing an app for WP7. I pull some data out of a
I'm developing a wp7 app, It's a simple rss reader. I'm able to recuperate
I'm currently developing a wp7 app (don't want to tell too much ;), but
Developing a WP7 app, and I'm trying to post something to the user's feed.
I'm developing a Windows Phone 7 (WP7) app and I'm using a LongListSelector control
I'm developing an app for WP7, but I ran into a problem I haven't
I am developing an app for WP7 and need to put out reminders. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.