Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakpoints in Smock.Run context not being hit #1

Open
vanderkleij opened this issue Jun 7, 2015 · 1 comment
Open

Breakpoints in Smock.Run context not being hit #1

vanderkleij opened this issue Jun 7, 2015 · 1 comment
Labels

Comments

@vanderkleij
Copy link
Owner

While executing code from a Smock.Run(context => {...}) call, no breakpoints are being hit. Currently the only known workaround is to add a Debugger.Break() call, after which the code can be stepped through successfully.

Smocks writes PDBs for modified assemblies and these PDBs appear to get loaded correctly:

'SmocksTest.vshost.exe' (CLR v4.0.30319: Smocks-0dca9fb5-a7dd-40ec-8fd3-6fe1466cbe85): Loaded 'D:\Users\Tom\AppData\Local\Temp\eda385a6-5d0c-4dd5-b66a-18ac96db85dc.exe'. Symbols loaded.

The source of this problem therefore remains unknown. It is probably related to the fact that the code runs in a separate AppDomain.

@vanderkleij vanderkleij added the bug label Jun 7, 2015
@Stoom
Copy link

Stoom commented Sep 24, 2015

I've also noticed code coverage tools can't see past the different appdomain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants