When I hit F5 (debugging mode) nothing happens. Building works correctly, exe file I can launch properly, but can’t start debug. Why?
asked Feb 21, 2012 at 8:49
9
I had the same problem and all the tricks didnt do it until I unchecked the «Enable the Visual Studio hosting process» under the debug tab in the project properties
answered Jul 9, 2012 at 12:09
bresleveloperbresleveloper
5,9403 gold badges33 silver badges47 bronze badges
9
Ugh! I was experiencing the exact same symptoms you were, and after trying all the suggestions, the only one that worked was your own: creating a new project and copying all the contents across.
Then I noticed that I couldn’t manually delete my Bin directory, and I realised that MyApp.vshost.exe had been running in the background this whole time, preventing itself from being overwritten by Visual Studio 2012. Not sure how it still worked from VS2010 though :/
In summary, the solution that worked for me: Kill the process, try again.
In other words, have you tried turning it off and on again?
answered Sep 25, 2012 at 18:18
mo.mo.
4,1553 gold badges34 silver badges45 bronze badges
5
Restart VS and try to debug. Some time it happens, even I also had the same problem.
answered Feb 21, 2012 at 8:52
Sudik MaharanaSudik Maharana
6941 gold badge7 silver badges15 bronze badges
1
Sorry to bring up an old question but I had the same problem today, but the reason was actually because of the build order of the solution.
If you go into the Solution Property Pages
-> Common Properties
-> Startup Project
.
The ensuring Multiple startup projects
is selected, move the web project to the top of the list.
In my web application solution I have 2 web projects and 5 code projects, one of my code projects was at the top, and as such debug would not start.
Hope others find this helpful
answered Feb 22, 2013 at 13:08
dan richardsondan richardson
3,8614 gold badges31 silver badges38 bronze badges
This solution has already been mentioned but it took some tinkering to make it work so here is a clear solution
- On the Project menu/tab, click Properties. (or on your solution explorer)
- Click the Debug tab.
- Clear the Enable the Visual Studio hosting process check box.(uncheck it)
- Check if it works.
If it does not restart your computer (some of the projects files run in the background if you know how to stop them then restarting is not necessary just end their tasks)
rebuild the project
this should solve the problem
hogarth45
3,3571 gold badge22 silver badges27 bronze badges
answered Mar 14, 2016 at 11:10
NeilNeil
6411 gold badge7 silver badges21 bronze badges
3
Before you go through an intense fix… try this!!!
-
Simply start the .exe file in your debug folder. «Do not close it!»
-
Start the debugger in Visual Studio.
(i) An error should pop up… just say «no» -
Close the «.exe» file you started in step «1.»
-
Try again.
For some reason, visual studio was stuck on this app that i was building but this worked for me.
answered Sep 16, 2013 at 15:48
What helped me out of this issue:
- close solution
- remove solution.suo file
- reopen solution
answered Jun 9, 2016 at 15:04
Stefan MichevStefan Michev
4,7773 gold badges35 silver badges30 bronze badges
First, in your project properties and in the Debug
tab, make sure that your Start Action
is set to Start Project
and not some other option that won’t run. If that doesn’t resolve it then:
Go to Tools -> Options -> Environment -> Keyboard
and in Show commands containing:
type Debug.Start
and make sure that Shortcuts for selected command:
is set to F5 (Global)
. Also make sure you do not have anything else mapped to F5 that might conflict.
Finally if this doesn’t resolve your issue, then I suggest that you export your current environment settings as a backup, and then reset all environment settings completely. See if that resolves it, if it does not then reimport your old settings and try repairing visual studio.
answered Feb 21, 2012 at 8:56
David AndersonDavid Anderson
13.6k5 gold badges50 silver badges76 bronze badges
4
I have very funny solution, but it worked for me,
Hold the F5 key until you see that the debugging started, I’m serious guys.
answered Mar 6, 2013 at 13:22
NourNour
5,2023 gold badges41 silver badges65 bronze badges
2
close your project then delete all files on yourprojectbinDebug folder to make new debug solution
answered Mar 20, 2013 at 2:57
Quick fix that might help someone:
I am using VS2013 and my debugger suddenly stopped working.
I kept getting a message box stating debugging is not supported.
I finally fixed it by clearing NATIVE checkbox under Debuggers in the Property Pages->Start Options tab for the start up project. I now only have ASP.NET selected under Debuggers.
answered Aug 17, 2017 at 12:08
Go to Solution Explorer, right-click your project go to properties, click Debug, at the bottom there is a check box, click the check box to Enable SQL Server Debugging.
answered Apr 23, 2013 at 20:19
Verify that in your Project -> Properties -> Debug tab -> Start Action sections that «Do not launch, but debug my code when it starts» is not checked. Somehow this got checked months after I created and had been working on my project.
Unchecking this solved my problem.
answered May 22, 2013 at 17:10
jmurphyjmurphy
1,8913 gold badges22 silver badges28 bronze badges
1
I had the same issue and while looking at bresleveloper’s answer, I found the following issue which seemed to work for me. Posting this in case anyone else has the same issue, then they can check this as well.
Went to Debug Tab < Project Properties. Found that Debugging options were totally disabled. Checked the «Enable Debugging» check box. That did if for me..
answered Jul 15, 2015 at 15:16
3
I faced this problem. In my case, somehow the startup project entry got cleared. So, make sure atleast one among the projects in your solution explorer is set as the startup project. To set up a startup project, right click on the desired project in the solution explorer —> click «Set as Startup Project«
answered Jul 26, 2017 at 20:12
josepainumkaljosepainumkal
1,6131 gold badge16 silver badges23 bronze badges
I’m experiencing the same problem. I haven’t been able to display the debug window, but I was able to redirect the debug output to the simplified ‘immediate window’ by checking the corresponding option in Debug->Options and Settings; only shows explicit Debug writes in the code like Debug.Writeline().
Visual Studio 2010
answered Jan 29, 2013 at 8:45
This process generally works for me:
- Close IE
- Use Task Manager to check that all instances of iexplore.exe have gone — kill
any remaining ‘orphan’ instances. - Start IE from the start menu and make sure it starts up correctly.
- Clear Internet Explorer’s cache & cookies and restart.
- Close Visual Studio to ensure all locks are released.
- IISReset
- Restart VS
- Clean the project/solution
- Recompile and it should work
answered Jun 2, 2013 at 23:07
GlennGGlennG
2,9722 gold badges20 silver badges25 bronze badges
I have found a solution:
- Close your Visual studio solution
- Open your
.csproj
project header with notepad ++ for example. - Search for
<UseIISExpress>false</UseIISExpress>
in the<PropertyGroup>
section - Change the value to true :
<UseIISExpress>true</UseIISExpress>
- Save
- Open your solution and for me now debug works on my project
Kevin Panko
8,32719 gold badges50 silver badges61 bronze badges
answered Jan 23, 2013 at 12:39
VincenzoVincenzo
1,7312 gold badges16 silver badges26 bronze badges
1
I have found a solution:
- Close your Visual studio solution
- Open your .csproj project header with notepad ++ for example.
- Search for Tag in the section
- Remove Config Tag completly
- Open your solution and for me now debug works on my project
answered Feb 19, 2015 at 12:30
Check Configuration Manager, make sure all projects are compiling for the same platform.
answered Aug 13, 2015 at 18:46
I had the same problem with my desktop application and as this forum says you should mark your project as a startup project, since visual studio has unmarked.
It worked just fine for me and I believe it will help other people that may have this problem.
Mogsdad
44.5k21 gold badges150 silver badges272 bronze badges
answered Jul 23, 2015 at 10:52
g_brahimajg_brahimaj
1977 silver badges21 bronze badges
With regard to the problem above where the Console doesn’t appear. (I don’t have enough merit points to comment directly against that post.)
I disabled the hosting process in order to get around the problem of it being left running and leaving the files locked. When I did this I found my Console window no longer appeared when I hit F5 to debug, although my program ran fine.
I then noticed that I had the «Prefer 32-bit» check-box ticked. I unticked this, rebuilt and the Console window appeared once more. This seemed strange so I ticked it off again and confirmed I can reproduce this behaviour.
I’m using Visual Studio 2013.
answered Aug 18, 2015 at 10:02
For the new ASP.Net Core 1 app.
Under package management console, i ran
dnvm upgrade
dnvm restore
and my solution could compile.
RoadieRich
6,3013 gold badges35 silver badges52 bronze badges
answered Mar 23, 2016 at 7:17
My experience with Visual Studio 2015, I tried deleting all processes and restarting it didn’t work. I tried deleting the bin directory, it didn’t work.
Sadly, the only thing that worked was closing down and restarting Visual Studio 2015 in Admin mode. Sigh…
answered Jul 8, 2016 at 18:46
Chris HawkesChris Hawkes
11.8k6 gold badges57 silver badges67 bronze badges
Same error, tried executing VS as Administrator and it worked.
answered Sep 11, 2016 at 4:20
andrepauloandrepaulo
81611 silver badges24 bronze badges
I was having the same issue (apparently several years later) where I could see my device in VS 2015, but when I wanted to debug on the device, nothing happened.
It may be a different issue than the one the original poster had, but this solution fixed the problem for me in VS 2015.
Right-click the solution and select Properties, and then notice if the checkbox for your solution in the Deploy column is checked, if it is not, then check it and try debugging again. Worked for me.
answered Oct 13, 2016 at 10:35
AidalAidal
7894 gold badges8 silver badges33 bronze badges
I had this problem in a WPF application I was working on. When running the debugger, a process named MyApp.VsHost.exe would start and continue running in the background, but there would be no exceptions thrown and nothing in the Output window except build information.
It was because I had changed the namespace of my App
class but did not update the Class
attribute in App.xaml
to match the new namespace. I changed the namespace in the xaml file and it worked again.
answered Nov 20, 2016 at 17:28
JamesFaixJamesFaix
7,9336 gold badges36 silver badges73 bronze badges
If you are working with an SSIS package or a solution with more than one application inside of it. Make sure you have the correct application set as your «Start up project».
If you have a separate application or SSIS project in the same folder, your Visual Studio is probably building that instead of what you want to run.
Hope this helps!
answered Aug 11, 2017 at 18:48
What worked for me was completely deleting the solution folder (had to reboot Windows to be allowed to do this), and then getting it back from source control. Sounds drastic — but it doesn’t actually take very long.
answered May 9, 2018 at 10:56
Graham LaightGraham Laight
4,6703 gold badges29 silver badges28 bronze badges
Using Visual Studio 2017. Had dozen projects in a solution. Pressing debug would build with no error then do nothing.
Issue was one Project built to .Net 4.6 while the rest where .Net 4.0
answered Jul 11, 2018 at 17:27
hogarth45hogarth45
3,3571 gold badge22 silver badges27 bronze badges
Отладка – важная часть процесса разработки программного обеспечения. Однако иногда может возникнуть проблема с запуском отладки в Visual Studio. Приложение может не начать выполнение, либо прервать работу в процессе. В этой статье мы рассмотрим возможные причины проблемы с отладкой и как ее исправить.
Одной из основных причин проблемы с отладкой являются ошибки в коде программы. Необработанные исключения, неправильная логика приложения, некорректная работа с памятью – все это может привести к неуспешному запуску отладки. Однако не всегда код бывает виноват в проблеме. Рассмотрим другие возможные причины.
Если приложение не запускается в режиме отладки, дополнительной причиной могут быть настройки сборки. Например, если в проекте возникли проблемы со ссылками или есть ошибки в настройках среды выполнения, это может привести к проблемам с отладкой. Не менее важным является правильная настройка среды – все инструменты и пакеты Visual Studio должны быть установлены и настроены правильно.
Содержание
- Решение проблемы: Visual Studio не открывает отладчик
- Причины проблемы открытия отладчика в Visual Studio
- Как исправить проблему открытия отладчика в Visual Studio
- Настройка проекта и сборки в Visual Studio
- Инструкции для работы с Visual Studio и отладчиком
- Вопрос-ответ
- Почему Visual Studio не может начать отладку?
- Как исправить проблему с отладкой, связанную с ошибкой в коде?
- Может ли проблема с отладкой быть связана с наличием ошибок в настройках приложения?
Решение проблемы: Visual Studio не открывает отладчик
Visual Studio – это мощный инструмент для разработки программного обеспечения, но иногда при работе с ним возникают проблемы. Одной из таких проблем является невозможность открытия отладчика. В данной статье будет рассказано, как решить эту проблему.
Первым шагом в решении данной проблемы является проверка наличия необходимых компонентов Visual Studio. Убедитесь, что у вас установлены все необходимые компоненты и компоненты языка программирования, которым вы работаете.
Если все компоненты установлены, проверьте настройки отладки в Visual Studio. Возможно, что что-то было изменено или выключено случайно. Откройте настройки и перейдите в раздел «Отладка». Убедитесь, что у вас включены все необходимые опции отладки.
Если все вышеперечисленные шаги не помогли, попробуйте перезапустить Visual Studio или перезагрузить компьютер. Иногда это помогает в решении проблемы.
В исключительных случаях может потребоваться переустановка Visual Studio или установка обновления, которое может решить проблему с отладчиком.
В итоге, если Вы столкнулись с проблемой не работающего отладчика в Visual Studio, существует несколько простых способов решения данной проблемы. Проверьте наличие необходимых компонентов, настройки отладки, перезагрузите компьютер и, если ничего не помогло, переустановите Visual Studio.
Причины проблемы открытия отладчика в Visual Studio
Неправильно настроенные параметры отладки могут являться основной причиной невозможности открыть отладчик в Visual Studio. Например, настройка атрибута «Debuggable» может быть установлена неправильно. Изменение настроек отладки может решить эту проблему.
Неисправности проекта также могут привести к проблеме открытия отладчика в Visual Studio. Это может произойти, если были внесены изменения в конфигурационные файлы или код, который привел к ошибке. В этом случае необходимо проверить файлы проекта на наличие ошибок и исправить их, чтобы отладка стала возможной.
Проблемы с системными файлами могут быть еще одной причиной невозможности открыть отладчик в Visual Studio. Возможно, необходимо установить обновления программы, проверить наличие вирусов, которые могут препятствовать выполнению некоторых задач или запустить систему в безопасном режиме, чтобы проверить, работает ли отладчик.
Отсутствие поддержки библиотеки, которую использует проект, может стать последней причиной проблемы открытия отладчика в Visual Studio. Например, если используется библиотека, которая не поддерживается последними версиями Visual Studio, отладчик не будет работать. В этом случае необходимо заменить данную библиотеку на другую, которая поддерживается последними версиями Visual Studio.
Как исправить проблему открытия отладчика в Visual Studio
Отладчик в Visual Studio – один из важнейших инструментов, используемых при разработке приложений. Если возникают проблемы при открытии отладчика, это может серьезно замедлить процесс разработки. Ниже описаны несколько методов, которые могут помочь в решении проблемы.
- Перезагрузите Visual Studio — первым делом, стоит попробовать просто выйти из Visual Studio и заново его запустить. Часто это уже может решить проблему.
- Проверьте конфигурацию проекта — убедитесь, что файл конфигурации проекта .csproj содержит правильные параметры отладки, а также, что удачно выполнены настройки проекта.
- Убедитесь в наличии дополнительных пакетов — в случае, если требуется дополнительные сторонние пакеты для отладки, проверьте, есть ли они установлены в Вашей среде Visual Studio.
- Установите обновления или пакеты — при неправильной работе отладчика возможно есть проблема с установкой обновлений или с дополнительными пакетами. Обратитесь к официальной документации на MSDN для исправления этой проблемы.
Примечание: | Если вы не можете решить проблему открытия отладчика с помощью предложенных методов, рекомендуется обратиться к сообществу разработчиков или специалистам помощи Visual Studio. |
С последовательным применением вышеприведенных методов Вам удастся восстановить отладочный процесс в Visual Studio и продолжить разработку Вашего приложения. Важно при первых же признаках проблемы приступать к ее решению, чтобы не увеличивать время разработки и получить максимально быстрый и качественный результат.
Настройка проекта и сборки в Visual Studio
Каждый проект в Visual Studio имеет свои настройки, которые позволяют настроить процесс его сборки и запуска. Перед началом работы с проектом необходимо убедиться в правильной настройке его параметров.
При создании нового проекта в Visual Studio, вам необходимо выбрать тип проекта и настроить его свойства. Важно установить правильный тип сборки и целевую платформу, чтобы проект мог быть запущен на нужной операционной системе.
Также, при работе с проектом, следует обратить внимание на настройки отладки. Необходимо настроить параметры запуска, чтобы отладчик правильно работал со всеми компонентами проекта. Кроме того, важно убедиться в правильном указании пути к исполняемому файлу, а также в наличии необходимых библиотек и модулей.
При работе с проектом через Git, необходимо правильно настроить параметры сборки и запуска. Важно установить правильное подключение к репозиторию, а также правильно настроить автоматическую сборку и деплой.
В Visual Studio есть возможность использования различных плагинов и расширений, которые могут помочь в процессе настройки проекта и сборки. Например, плагин ReSharper позволяет автоматически исправлять некоторые типичные ошибки и оптимизировать код.
- Вывод
Настройка проекта и сборки является важной частью разработки в Visual Studio. Ее правильное осуществление помогает избежать множества ошибок и неполадок, а также повысить эффективность работы над проектом.
Инструкции для работы с Visual Studio и отладчиком
1. Убедитесь, что проект скомпилирован
Перед запуском отладчика необходимо убедиться, что ваш проект корректно скомпилирован, чтобы исключить возможность ошибок, связанных с компиляцией. Выполните компиляцию проекта, если у вас появляются ошибки при компиляции — исправьте их.
2. Настройте параметры отладки
Перед запуском отладчика необходимо убедиться, что параметры отладки настроены корректно. Откройте окно «Свойства проекта» (Project Properties), выберите вкладку «Конфигурации отладки» (Debugging Configuration) и проверьте параметры отладки, такие как «Символы отладки» (Debug Symbols) и «Относительная директория» (Working Directory).
3. Запустите отладчик
Для запуска отладчика выберите пункт меню «Отладка» (Debug) и нажмите «Начать отладку» (Start Debugging) или используйте горячую клавишу F5. Проект будет запущен в отладочном режиме, и вы сможете начать отладку.
4. Используйте точки останова
Точки останова (Breakpoints) — это мощный инструмент отладки в Visual Studio. Они позволяют вам остановить выполнение программы в заданной точке и проанализировать ее состояние. Для установки точки останова просто щелкните мышью на нужной строке кода и выберите пункт контекстного меню «Добавить точку останова» (Add Breakpoint).
5. Анализируйте данные в режиме отладки
В режиме отладки вы можете анализировать текущее состояние программы, следить за переменными, выполнять код по шагам и многое другое. Чтобы выполнить код по шагам, используйте панель кнопок управления отладкой (Debug Toolbar) или горячие клавиши, такие как F10 (Выполнить следующую строку кода) или F11 (Войти в вызов функции).
6. Используйте окно «Просмотр переменных» (Watch Window)
Окно «Просмотр переменных» (Watch Window) позволяет вам просматривать значения переменных в режиме отладки. Чтобы запустить окно «Просмотр переменных», выберите пункт меню «Отладка» (Debug) и выберите «Окна» (Windows) > «Просмотр переменных» (Watch).
7. Используйте окно «Автозначения» (Autos Window)
Окно «Автозначения» (Autos Window) позволяет вам просматривать значения переменных, которые были изменены в процессе выполнения кода в режиме отладки. Чтобы запустить окно «Автозначения», выберите пункт меню «Отладка» (Debug) и выберите «Окна» (Windows) > «Автозначения» (Autos).
8. Используйте окно «Стек вызовов» (Call Stack Window)
Окно «Стек вызовов» (Call Stack Window) позволяет вам просматривать последовательность вызовов функций в режиме отладки. Чтобы запустить окно «Стек вызовов», выберите пункт меню «Отладка» (Debug) и выберите «Окна» (Windows) > «Стек вызовов» (Call Stack).
Вопрос-ответ
Почему Visual Studio не может начать отладку?
Visual Studio может не начать отладку по нескольким причинам: ошибка установки, проблемы с конфигурацией, отсутствие необходимых файлов и т.д. Для решения проблемы, необходимо сделать такие шаги, как перезапуск приложения, проверка наличия всех необходимых файлов, отключение антивируса и прочих программ, препятствующих работе приложения и т.д.
Как исправить проблему с отладкой, связанную с ошибкой в коде?
если причина проблемы с отладкой — ошибка в коде, то необходимо найти и исправить ее. Для этого можно использовать отладчик, который поможет найти и исправить ошибки, или изменить код самостоятельно.
Может ли проблема с отладкой быть связана с наличием ошибок в настройках приложения?
Да, проблема с отладкой может быть связана с неверными настройками приложения. Например, необходимо установить правильный путь к файлу в настройках, или изменить настройки безопасности. В таких случаях стоит проверить наличие ошибок и изменить параметры приложения в соответствии с его особенностями.
When I hit F5 (debugging mode) nothing happens. Building works correctly, exe file I can launch properly, but can’t start debug. Why?
asked Feb 21, 2012 at 8:49
9
I had the same problem and all the tricks didnt do it until I unchecked the «Enable the Visual Studio hosting process» under the debug tab in the project properties
answered Jul 9, 2012 at 12:09
bresleveloperbresleveloper
5,9403 gold badges33 silver badges47 bronze badges
9
Ugh! I was experiencing the exact same symptoms you were, and after trying all the suggestions, the only one that worked was your own: creating a new project and copying all the contents across.
Then I noticed that I couldn’t manually delete my Bin directory, and I realised that MyApp.vshost.exe had been running in the background this whole time, preventing itself from being overwritten by Visual Studio 2012. Not sure how it still worked from VS2010 though :/
In summary, the solution that worked for me: Kill the process, try again.
In other words, have you tried turning it off and on again?
answered Sep 25, 2012 at 18:18
mo.mo.
4,1553 gold badges34 silver badges45 bronze badges
5
Restart VS and try to debug. Some time it happens, even I also had the same problem.
answered Feb 21, 2012 at 8:52
Sudik MaharanaSudik Maharana
6941 gold badge7 silver badges15 bronze badges
1
Sorry to bring up an old question but I had the same problem today, but the reason was actually because of the build order of the solution.
If you go into the Solution Property Pages
-> Common Properties
-> Startup Project
.
The ensuring Multiple startup projects
is selected, move the web project to the top of the list.
In my web application solution I have 2 web projects and 5 code projects, one of my code projects was at the top, and as such debug would not start.
Hope others find this helpful
answered Feb 22, 2013 at 13:08
dan richardsondan richardson
3,8614 gold badges31 silver badges38 bronze badges
This solution has already been mentioned but it took some tinkering to make it work so here is a clear solution
- On the Project menu/tab, click Properties. (or on your solution explorer)
- Click the Debug tab.
- Clear the Enable the Visual Studio hosting process check box.(uncheck it)
- Check if it works.
If it does not restart your computer (some of the projects files run in the background if you know how to stop them then restarting is not necessary just end their tasks)
rebuild the project
this should solve the problem
hogarth45
3,3571 gold badge22 silver badges27 bronze badges
answered Mar 14, 2016 at 11:10
NeilNeil
6411 gold badge7 silver badges21 bronze badges
3
Before you go through an intense fix… try this!!!
-
Simply start the .exe file in your debug folder. «Do not close it!»
-
Start the debugger in Visual Studio.
(i) An error should pop up… just say «no» -
Close the «.exe» file you started in step «1.»
-
Try again.
For some reason, visual studio was stuck on this app that i was building but this worked for me.
answered Sep 16, 2013 at 15:48
What helped me out of this issue:
- close solution
- remove solution.suo file
- reopen solution
answered Jun 9, 2016 at 15:04
Stefan MichevStefan Michev
4,7773 gold badges35 silver badges30 bronze badges
First, in your project properties and in the Debug
tab, make sure that your Start Action
is set to Start Project
and not some other option that won’t run. If that doesn’t resolve it then:
Go to Tools -> Options -> Environment -> Keyboard
and in Show commands containing:
type Debug.Start
and make sure that Shortcuts for selected command:
is set to F5 (Global)
. Also make sure you do not have anything else mapped to F5 that might conflict.
Finally if this doesn’t resolve your issue, then I suggest that you export your current environment settings as a backup, and then reset all environment settings completely. See if that resolves it, if it does not then reimport your old settings and try repairing visual studio.
answered Feb 21, 2012 at 8:56
David AndersonDavid Anderson
13.6k5 gold badges50 silver badges76 bronze badges
4
I have very funny solution, but it worked for me,
Hold the F5 key until you see that the debugging started, I’m serious guys.
answered Mar 6, 2013 at 13:22
NourNour
5,2023 gold badges41 silver badges65 bronze badges
2
close your project then delete all files on yourprojectbinDebug folder to make new debug solution
answered Mar 20, 2013 at 2:57
Quick fix that might help someone:
I am using VS2013 and my debugger suddenly stopped working.
I kept getting a message box stating debugging is not supported.
I finally fixed it by clearing NATIVE checkbox under Debuggers in the Property Pages->Start Options tab for the start up project. I now only have ASP.NET selected under Debuggers.
answered Aug 17, 2017 at 12:08
Go to Solution Explorer, right-click your project go to properties, click Debug, at the bottom there is a check box, click the check box to Enable SQL Server Debugging.
answered Apr 23, 2013 at 20:19
Verify that in your Project -> Properties -> Debug tab -> Start Action sections that «Do not launch, but debug my code when it starts» is not checked. Somehow this got checked months after I created and had been working on my project.
Unchecking this solved my problem.
answered May 22, 2013 at 17:10
jmurphyjmurphy
1,8913 gold badges22 silver badges28 bronze badges
1
I had the same issue and while looking at bresleveloper’s answer, I found the following issue which seemed to work for me. Posting this in case anyone else has the same issue, then they can check this as well.
Went to Debug Tab < Project Properties. Found that Debugging options were totally disabled. Checked the «Enable Debugging» check box. That did if for me..
answered Jul 15, 2015 at 15:16
3
I faced this problem. In my case, somehow the startup project entry got cleared. So, make sure atleast one among the projects in your solution explorer is set as the startup project. To set up a startup project, right click on the desired project in the solution explorer —> click «Set as Startup Project«
answered Jul 26, 2017 at 20:12
josepainumkaljosepainumkal
1,6131 gold badge16 silver badges23 bronze badges
I’m experiencing the same problem. I haven’t been able to display the debug window, but I was able to redirect the debug output to the simplified ‘immediate window’ by checking the corresponding option in Debug->Options and Settings; only shows explicit Debug writes in the code like Debug.Writeline().
Visual Studio 2010
answered Jan 29, 2013 at 8:45
This process generally works for me:
- Close IE
- Use Task Manager to check that all instances of iexplore.exe have gone — kill
any remaining ‘orphan’ instances. - Start IE from the start menu and make sure it starts up correctly.
- Clear Internet Explorer’s cache & cookies and restart.
- Close Visual Studio to ensure all locks are released.
- IISReset
- Restart VS
- Clean the project/solution
- Recompile and it should work
answered Jun 2, 2013 at 23:07
GlennGGlennG
2,9722 gold badges20 silver badges25 bronze badges
I have found a solution:
- Close your Visual studio solution
- Open your
.csproj
project header with notepad ++ for example. - Search for
<UseIISExpress>false</UseIISExpress>
in the<PropertyGroup>
section - Change the value to true :
<UseIISExpress>true</UseIISExpress>
- Save
- Open your solution and for me now debug works on my project
Kevin Panko
8,32719 gold badges50 silver badges61 bronze badges
answered Jan 23, 2013 at 12:39
VincenzoVincenzo
1,7312 gold badges16 silver badges26 bronze badges
1
I have found a solution:
- Close your Visual studio solution
- Open your .csproj project header with notepad ++ for example.
- Search for Tag in the section
- Remove Config Tag completly
- Open your solution and for me now debug works on my project
answered Feb 19, 2015 at 12:30
Check Configuration Manager, make sure all projects are compiling for the same platform.
answered Aug 13, 2015 at 18:46
I had the same problem with my desktop application and as this forum says you should mark your project as a startup project, since visual studio has unmarked.
It worked just fine for me and I believe it will help other people that may have this problem.
Mogsdad
44.5k21 gold badges150 silver badges272 bronze badges
answered Jul 23, 2015 at 10:52
g_brahimajg_brahimaj
1977 silver badges21 bronze badges
With regard to the problem above where the Console doesn’t appear. (I don’t have enough merit points to comment directly against that post.)
I disabled the hosting process in order to get around the problem of it being left running and leaving the files locked. When I did this I found my Console window no longer appeared when I hit F5 to debug, although my program ran fine.
I then noticed that I had the «Prefer 32-bit» check-box ticked. I unticked this, rebuilt and the Console window appeared once more. This seemed strange so I ticked it off again and confirmed I can reproduce this behaviour.
I’m using Visual Studio 2013.
answered Aug 18, 2015 at 10:02
For the new ASP.Net Core 1 app.
Under package management console, i ran
dnvm upgrade
dnvm restore
and my solution could compile.
RoadieRich
6,3013 gold badges35 silver badges52 bronze badges
answered Mar 23, 2016 at 7:17
My experience with Visual Studio 2015, I tried deleting all processes and restarting it didn’t work. I tried deleting the bin directory, it didn’t work.
Sadly, the only thing that worked was closing down and restarting Visual Studio 2015 in Admin mode. Sigh…
answered Jul 8, 2016 at 18:46
Chris HawkesChris Hawkes
11.8k6 gold badges57 silver badges67 bronze badges
Same error, tried executing VS as Administrator and it worked.
answered Sep 11, 2016 at 4:20
andrepauloandrepaulo
81611 silver badges24 bronze badges
I was having the same issue (apparently several years later) where I could see my device in VS 2015, but when I wanted to debug on the device, nothing happened.
It may be a different issue than the one the original poster had, but this solution fixed the problem for me in VS 2015.
Right-click the solution and select Properties, and then notice if the checkbox for your solution in the Deploy column is checked, if it is not, then check it and try debugging again. Worked for me.
answered Oct 13, 2016 at 10:35
AidalAidal
7894 gold badges8 silver badges33 bronze badges
I had this problem in a WPF application I was working on. When running the debugger, a process named MyApp.VsHost.exe would start and continue running in the background, but there would be no exceptions thrown and nothing in the Output window except build information.
It was because I had changed the namespace of my App
class but did not update the Class
attribute in App.xaml
to match the new namespace. I changed the namespace in the xaml file and it worked again.
answered Nov 20, 2016 at 17:28
JamesFaixJamesFaix
7,9336 gold badges36 silver badges73 bronze badges
If you are working with an SSIS package or a solution with more than one application inside of it. Make sure you have the correct application set as your «Start up project».
If you have a separate application or SSIS project in the same folder, your Visual Studio is probably building that instead of what you want to run.
Hope this helps!
answered Aug 11, 2017 at 18:48
What worked for me was completely deleting the solution folder (had to reboot Windows to be allowed to do this), and then getting it back from source control. Sounds drastic — but it doesn’t actually take very long.
answered May 9, 2018 at 10:56
Graham LaightGraham Laight
4,6703 gold badges29 silver badges28 bronze badges
Using Visual Studio 2017. Had dozen projects in a solution. Pressing debug would build with no error then do nothing.
Issue was one Project built to .Net 4.6 while the rest where .Net 4.0
answered Jul 11, 2018 at 17:27
hogarth45hogarth45
3,3571 gold badge22 silver badges27 bronze badges
cjv 0 / 0 / 1 Регистрация: 20.07.2017 Сообщений: 15 |
||||
1 |
||||
20.07.2017, 16:20. Показов 29293. Ответов 7 Метки нет (Все метки)
Скопировал простую программу для С++ в Visual Studio 2017
Начал отладку. Возникло такое окно: Нажал нет — окно закрылось и отладка не началась. Нажал да и возникло такое окно: Вот как выглядит папка:
Там должна быть папка Debug.
0 |
68 / 51 / 27 Регистрация: 27.04.2015 Сообщений: 203 |
|
20.07.2017, 16:31 |
2 |
Создайте сначала проект правильно. Лучше даже пустой создайте или хотя бы отключите пока предкомпилированные заголовки. Вот здесь скриншоты есть. PS А папки Debug нет и не будет, пока вы не соберете проект без ошибок.
0 |
3434 / 2813 / 1249 Регистрация: 29.01.2016 Сообщений: 9,426 |
|
20.07.2017, 17:06 |
3 |
Я не знаю, как запустить отладку, помогите! Пытаешься запустить то, что не собралось. Сначала сборку запусти: Shift + Ctrl + B, если ошибок нет, но запускай отладку (F5). Если ошибки есть — исправляй.
0 |
0 / 0 / 1 Регистрация: 20.07.2017 Сообщений: 15 |
|
20.07.2017, 18:06 [ТС] |
4 |
Создайте сначала проект правильно. Я по этой странице изначально делал
Сначала сборку запусти: Shift + Ctrl + B Возникают ошибки. Такие же как при F5. Вот они (надеюсь, будет только ссылка) Ошибки.docx
0 |
3434 / 2813 / 1249 Регистрация: 29.01.2016 Сообщений: 9,426 |
|
20.07.2017, 18:16 |
5 |
Вот они Здесь выложи, текстом (можно первые).
не удалось найти Windows SDK версии 8.1. Установлена?
0 |
68 / 51 / 27 Регистрация: 27.04.2015 Сообщений: 203 |
|
20.07.2017, 18:20 |
6 |
Кликните здесь для просмотра всего текста Код Серьезность Код Описание Проект Файл Строка Состояние подавления Ошибка (активно) E0282 глобальная область видимости не содержит "atanf" ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includecmath 630 Ошибка (активно) E1696 не удается открыть источник файл "errno.h" ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includecerrno 7 ... Ошибка (активно) E0282 глобальная область видимости не содержит "fgetwc" ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includecwchar 16 ... Ошибка (активно) E0282 глобальная область видимости не содержит "wcstoull" ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includecwchar 36 Ошибка (активно) E1696 не удается открыть источник файл "corecrt_terminate.h" ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includeeh.h 11 Ошибка (активно) E1696 не удается открыть источник файл "malloc.h" ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includeexception 41 Ошибка (активно) E0282 глобальная область видимости не содержит "set_terminate" ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includeexception 46 Ошибка (активно) E0020 идентификатор "terminate_handler" не определен ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includeexception 51 Ошибка (активно) E1696 не удается открыть источник файл "crtdbg.h" ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includeiosfwd 11 Ошибка (активно) E0260 отсутствует явный тип (требуется "int") ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includeiosfwd 29 Ошибка (активно) E0065 требуется точка с запятой ";" ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includeiosfwd 29 Ошибка (активно) E0020 идентификатор "EAFNOSUPPORT" не определен ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includesystem_error 26 ... Ошибка (активно) E0020 идентификатор "EPROTOTYPE" не определен ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includesystem_error 103 Ошибка (активно) E1696 не удается открыть источник файл "share.h" ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includexiosbase 10 ... Ошибка (активно) E0260 отсутствует явный тип (требуется "int") ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includextgmath.h 211 Ошибка (активно) E0260 отсутствует явный тип (требуется "int") ConsoleApplication7 c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017includextgmath.h 212 Ошибка (активно) E1696 не удается открыть источник файл "stdio.h" ConsoleApplication7 c:UsersTimofeyDocumentsVisual Studio 2017ProjectsConsoleApplication7ConsoleApplication7stdafx.h 10 Ошибка (активно) E1696 не удается открыть источник файл "tchar.h" ConsoleApplication7 c:UsersTimofeyDocumentsVisual Studio 2017ProjectsConsoleApplication7ConsoleApplication7stdafx.h 11 Ошибка (активно) E1696 не удается открыть источник файл "SDKDDKVer.h" ConsoleApplication7 c:UsersTimofeyDocumentsVisual Studio 2017ProjectsConsoleApplication7ConsoleApplication7targetver.h 8 Ошибка MSB8036 не удалось найти Windows SDK версии 8.1. Установите нужную версию Windows SDK или измените версию SDK на страницах свойств проекта либо щелкнув правой кнопкой мыши решение и выбрав "Изменить целевую платформу решения". ConsoleApplication7 C:Program Files (x86)Microsoft Visual Studio2017CommunityCommon7IDEVCVCTargetsPlatformsWin32PlatformToolsetsv141Toolset.targets 34
Здесь выложи, текстом (можно первые).
0 |
3434 / 2813 / 1249 Регистрация: 29.01.2016 Сообщений: 9,426 |
|
20.07.2017, 18:26 |
7 |
0 |
6403 / 3940 / 1578 Регистрация: 09.05.2015 Сообщений: 9,241 |
|
20.07.2017, 18:38 |
8 |
Сама SDK весит 2 ГБ — я такое не скачаю. А мы тут причем?
Что делать? Качать Windows SDK.
0 |
- Remove From My Forums
-
Вопрос
-
Здравствуйте. У меня не работает отладка в вышеупомянутой студии. Символы установлены, путь к ним указан. Но при нажатии F11, сообщение, что не хватает файлов и предлагает найти их самостоятельно. Подскажите, пожалуйста, в
чём проблема, что неправильно делаю? Студия установлена в Windows 10.-
Изменен тип
17 августа 2015 г. 6:47
тема не активна -
Изменен тип
Maksim MarinovMicrosoft contingent staff, Moderator
17 августа 2015 г. 6:47
ошибка
-
Изменен тип
Ответы
-
Приложение Windows начинает исполнение кода не с главной функции Вашей программы. Главная функция вызывается средой .net после некоторых подготовительных операций. Запуск отладки клавишами F10-F11, предназначенными для пошаговой
отладки останавливают программу именно в этом «подготовительном» коде, исходный код которого, действительно, отсутствует. И символы здесь не помогут. Отладку следует начинать с установки точек прерывания
в своем коде, а запускать клавишей F5.
Если сообщение помогло Вам, пожалуйста, не забудьте отметить его как ответ данной темы. Удачи в программировании!
-
Помечено в качестве ответа
Sergey_Bogatov
17 августа 2015 г. 14:01
-
Помечено в качестве ответа
-
А это предупреждение говорит о том, пошаговая отладка аксессоров get и set свойств отключена (по умолчанию, действительно, так и есть) и предлагает ее включить.
Если сообщение помогло Вам, пожалуйста, не забудьте отметить его как ответ данной темы. Удачи в программировании!
-
Помечено в качестве ответа
Sergey_Bogatov
17 августа 2015 г. 14:01
-
Помечено в качестве ответа
-
Сначала точки прерывания, потом F5, после остановки программы в нужном месте начинайте двигаться по шагам, если требуется. Отпустить программу до следующей точки — снова по f5 и т.д. Но имейте ввиду,
что шаг с заходом в функцию или свойство не из Вашего кода опять приведет к подобному сообщению.
Если сообщение помогло Вам, пожалуйста, не забудьте отметить его как ответ данной темы. Удачи в программировании!
-
Помечено в качестве ответа
Sergey_Bogatov
17 августа 2015 г. 19:08
-
Помечено в качестве ответа