Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
possible pdb+async issue
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Simon  
View profile  
 More options Nov 4 2012, 4:06 am
From: Simon <simon.cr...@gmail.com>
Date: Sun, 4 Nov 2012 01:06:03 -0800 (PST)
Local: Sun, Nov 4 2012 4:06 am
Subject: possible pdb+async issue

JB

https://www.dropbox.com/s/1rfr13g7qjmfm4w/CecilDebugIssue.zip

So someone raised this bug with NPW
https://github.com/SimonCropp/NotifyPropertyWeaver/issues/15

And it turns out it effects the other MSBuild project where I use cecil.

It manifests as such...

Given this

[TestFixture]
public class AsyncTest
{
    [Test]
    public void TestAsynch()
    {
        AsyncDebuggerTest();
    }

    public async void AsyncDebuggerTest()
    {
        var test = await getTestString();
        //set breakpoint on next line and look at 'test' variable in
debugger
        var test2 = test + test;
    }

    private async Task<string> getTestString()
    {
        return "test";
    }

}

you cant view the "test" variable in AsyncDebuggerTest

if I remove the async code I can view "test"

[TestFixture]
public class NonAsyncTest
{
    [Test]
    public void TestAsynch()
    {
        AsyncDebuggerTest();
    }

    public void AsyncDebuggerTest()
    {
        var test = getTestString();
        //set breakpoint on next line and look at 'test' variable in
debugger
        var test2 = test + test;
    }

    private string getTestString()
    {
        return "test";
    }

}

See CecilDebugIssue project in the attachment for the above two classes

If I remove cecil from the equation I can view the "test" variable in the
async case. See WithNoCecil project in attachment

I have included the bin+obj dir in the attachment so you can have a look at
the pdb and dlls

my module reader code is here
https://github.com/SimonCropp/Fody/blob/master/FodyIsolated/ModuleRea...
and my module write code is here
https://github.com/SimonCropp/Fody/blob/master/FodyIsolated/ModuleWri...

is this enough to go on?  I know it is a complicated repro but I am hoping
it is enough for you to go on.

Regards
Simon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jb Evain  
View profile  
 More options Nov 4 2012, 9:11 am
From: Jb Evain <jbev...@gmail.com>
Date: Sun, 4 Nov 2012 15:11:06 +0100
Local: Sun, Nov 4 2012 9:11 am
Subject: Re: [mono-cecil] possible pdb+async issue

I'am not surprised.

We're already messing with iterators, see
https://github.com/jbevain/cecil/issues/4

It's no surprise we have an issue with async methods.

Jb


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Cropp  
View profile  
 More options Nov 4 2012, 2:34 pm
From: Simon Cropp <simon.cr...@gmail.com>
Date: Mon, 5 Nov 2012 06:34:15 +1100
Local: Sun, Nov 4 2012 2:34 pm
Subject: Re: [mono-cecil] possible pdb+async issue

Looks like there are a couple of ways forward in that issue.

Are you not confident in the quality of the patches?

On 05/11/2012, at 1:11 AM, Jb Evain <jbev...@gmail.com> wrote:

I'am not surprised.

We're already messing with iterators, see
https://github.com/jbevain/cecil/issues/4

It's no surprise we have an issue with async methods.

Jb

 --
--
mono-cecil

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon  
View profile  
 More options Nov 5 2012, 7:30 am
From: Simon <simon.cr...@gmail.com>
Date: Mon, 5 Nov 2012 04:30:58 -0800 (PST)
Local: Mon, Nov 5 2012 7:30 am
Subject: Re: [mono-cecil] possible pdb+async issue

So I merged this
https://github.com/atykhyy/cecil/commit/a871befb703d41ddf8ed3618300ed...
with master and got this https://github.com/SimonCropp/cecil

And I can now view the variable in the iterator block so it looks
like atykhyy had the fix right.

Of course it is a significant number of changes
https://github.com/SimonCropp/cecil/commit/799a1e54cd521a262e73de6e17...

And I have no idea if it broke anything else :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon  
View profile  
 More options Nov 5 2012, 8:21 pm
From: Simon <simon.cr...@gmail.com>
Date: Mon, 5 Nov 2012 17:21:45 -0800 (PST)
Local: Mon, Nov 5 2012 8:21 pm
Subject: Re: [mono-cecil] possible pdb+async issue

but it does pass all the unit tests :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon  
View profile  
 More options Nov 8 2012, 2:41 am
From: Simon <simon.cr...@gmail.com>
Date: Wed, 7 Nov 2012 23:41:58 -0800 (PST)
Local: Thurs, Nov 8 2012 2:41 am
Subject: Re: [mono-cecil] possible pdb+async issue

thoughts?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Roth  
View profile  
 More options Feb 5, 11:29 am
From: David Roth <david.r...@fusonic.net>
Date: Tue, 5 Feb 2013 08:29:05 -0800 (PST)
Local: Tues, Feb 5 2013 11:29 am
Subject: Re: possible pdb+async issue

Please fix! This is a very critical bug for us too. It is impossible to
inspect variables in async code when using NotifyPropertyWeaver, even if
the type containing the async code has not been weavered!

Am Sonntag, 4. November 2012 10:06:03 UTC+1 schrieb Simon:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »