|
|
|
отладчик не переходит из одного проекта в другой
|
|||
|---|---|---|---|
|
#18+
Всем привет! Есть основной проект1. это web проект, asp.net, С#. расположен в C:\Inetpub\wwwroot в этом проекте есть файл RegistrationDocuments.dll в папке bin RegistrationDocuments - это другой проект на C#, при компиляции которого появляется RegistrationDocuments.dll в проекте RegistrationDocuments появилась ошибка и когда в проекте1 выполняется метод из RegistrationDocuments, мне нуна чтобы отладчик перепрыгнул из проекта1 в проект RegistrationDocuments. я попробовал открыть две студии для каждого проекта - не перепрыгивает. я попробовал в один солюшен подцепить эти два проекта - тоже не перепрыгивает. проискал в гугле с запросом "отладчик не переходит из одного проекта в другой visual studio 2005", но пока ничего толкового не нашел... на всякий случай скажу(может это важно)... в самом начале, когда в один солюшен подцепил два проекта и запускал в режиме отладки, то выводилась надпись "To debug this module, change its project build configuration to Debug mode. To supress this message, disable the 'Warn if no user code on launch' debugger option" ругался как раз на RegistrationDocuments.dll погуглил и : авторAt this point you may confirm the prompt and your application will continue to load as normal. It will, however, ignore any debugging instructions you have givin it, such as breakpoints. This is the result of the way the code was built, and there are two approaches to solve it: 1 - Ignore the message... To simply make this prompt no longer appear, you can do the following: Go to Tools --> Options --> Debugging --> General At this point, unselect 'Enable Just My Code (Managed Only)'. This should now rid you of the prompt. 2 - Allow Debugging... Due to the nature in which one of the assemblies has been built in your application, you will need to change a few settings to allow the code to be handled by the Visual Studio Debugger. Right click on any project in question from the solution explorer and select 'Properties'. This will open up the project properties panel giving us access to a great many options for our projects. Navigate to the 'Complile' Tab (or 'Build' if your in a C# environment) and select 'Advanced Compile Options...' from the bottom of the screen. This presents us with a prompt that has two key areas of interest: 1) Optimizations - uncheck 'Enable Optimizations' 2) Generate debug info - Ensure that the option is set to 'Full' сделал так как написано, только почему то в свойствах проекта RegistrationDocuments не нашел "Optimizations - uncheck 'Enable Optimizations'" :) но сама ошибка пропала... помогите, плиз, разобраться с переходом отладчика из одного проекта в другой... Заранее Большое Спасибо! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.12.2011, 10:03:29 |
|
||
|
отладчик не переходит из одного проекта в другой
|
|||
|---|---|---|---|
|
#18+
magik_mв этом проекте есть файл RegistrationDocuments.dll в папке bin Удалите этот файл из папки bin и сделайте reference ("Add reference" в меню и там выбор проекта) на этот проект. Файл должен там сам добавляться при компиляции. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.12.2011, 10:34:39 |
|
||
|
|

start [/forum/topic.php?fid=18&fpage=145&tid=1360229]: |
0ms |
get settings: |
9ms |
get forum list: |
9ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
315ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
33ms |
get tp. blocked users: |
1ms |
| others: | 231ms |
| total: | 615ms |

| 0 / 0 |
