VS2017 远程调试linux出现的错误:Cannot access memory at address 0x570
2017-07-11 10:32
866 查看
描述
新建的linux默认工程#include <stdio.h> int main() { printf("hello from linux_test!\n"); return 0; }
编译时没有任何问题:
1>------ 已启动生成: 项目: arptools, 配置: Debug x64 ------ 1>Validating architecture 1>Validating sources 1>Copying sources remotely to '192.168.1.136' 1>Starting remote build 1>Compiling sources: 1>main.cpp 1>Linking objects 1>arptools.vcxproj -> E:\projects\linux_test\bin\x64\Debug\linux_test.out 1>已完成生成项目“linux_test.vcxproj”的操作。 ========== 生成: 成功 1 个,失败 0 个,最新 0 个,跳过 0 个 ==========
但是一运行项目就报错了。
错误如下:
Warning:Cannot insert breakpoint -1.
Cannot access memory at address 0x570
明明没有打任何断点,却显示不能插入断点(也的确不能在-1行插入断点)
解决方案
工程属性->调试->调试模式把选项改为gdb,就可以了
然后就能运行了,运行结果如下:
Breakpoint 1, main () at /home/user001/projects/linux_test/main.cpp:5 5 printf("hello from linux_test!\n"); hello from linux_test! [Inferior 1 (process 16065) exited normally] 程序“”已退出,返 4000 回值为 0 (0x0)。
相关文章推荐
- 本地调试WCF程序出现错误:AddressAccessDeniedException: HTTP could not register URL
- Cannot access memory at address 0x4
- 为什么会出现Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 问题?
- 生成成功,调试时出现错误导致中断Unhandled exception at 0x41cd7fb0 in webcam.exe: 0xC0000005: Access violatio
- gdb:Cannot access memory at address 0xxxxx的问题 Hanging
- STM32 调试时,出现:cannot access memory!!!
- SWD下载程序出现错误cannot access memory
- Problem: 当调试时,出现错误提示:"Debugging information cannot be found or does not match"
- 解决mysql建立事件时出现 “Cannot proceed because system tables used by Event Scheduler were found damaged at server start” 的错误
- VS2010调试程序出现错误:vc/atlmfc/include/atlcore.h(35): fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at le
- 转载_MDK调试时出现MEMORY MISMATCH错误的原因及解决方法
- Linux php 出现错误cannot find -lltdl解决
- VSS错误:The Sourcesafe Web service cannot be accessed at the specified address
- cvLoad加载出现Microsoft C++ exception: cv::Exception at memory location 0x002bf5d8错误
- 运行软件弹出错误 access violation at address 004096da write of address 00401000 怎么解决
- linux出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- 解决mysql建立事件时出现 “Cannot proceed because system tables used by Event Scheduler were found damaged at server start” 的错误~~
- 安装wordpress出现:Warning: Cannot modify header information - headers already sent (output started at...)错误解决方案
- 弹出错误 access violation at address 004096da write of address 00401000 解决
- 通过远程桌面操作程序出现hook cannot be created(SendKeys语句错误)的解决