由买买提看人间百态

topics

全部话题 - 话题: debug
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
c*****m
发帖数: 1160
1
是一个5年旧的C++项目,一年前被移到VC2010里面,在Debug模式下很正常,所以现在
release 出去都是debug版本。
但是选择到Release下面编译就出错,出错的信息是:
Error 1 error LNK2019: unresolved external symbol __strdate_s
referenced in function "int __cdecl _strdate_s<32>(char (&)[32])" (??$_
strdate_s@$0CA@@@YAHAAY0CA@D@Z) C:\src\DebugLog.obj Perf
等500个类似错误。
出错信息所指的是 _strdate_、_strtime_s、strcat_s、sprintf_s等链接失败。这些
都是标准库函数啊,有include time.ht, string等,编译都已经通过了的。
我已经比较了在Debu状态下和Release状态下的link的参数:
Debug下:
/OUT:"C:\src\Debug \Perf.dll" /INCREMENTAL ... 阅读全帖
r*****3
发帖数: 143
2
文名: Inside Windows Debugging
作者: Tarik Soulami
资源格式: PDF
版本: 英文文字版/EPUB
出版社: Microsoft
书号: 0735662789
发行时间: 2012年5月
地区: 美国
语言: 英文
内容介绍:
Use Windows debuggers throughout the development cycle—and build better
software
Rethink your use of Windows debugging and tracing tools—and learn how to
make them a key part of test-driven software development. Led by a member of
the Windows Fundamentals Team at Microsoft, you’ll apply expert debugging
and tracing techniques—and sharpen your C++ and C# code ana... 阅读全帖
d*******d
发帖数: 103
3
【 以下文字转载自 JobHunting 讨论区 】
发信人: deerfield (deerfield), 信区: JobHunting
标 题: (Apple/Cupertino) SW Debugging/Failure analysis engineer
发信站: BBS 未名空间站 (Thu Apr 7 18:46:17 2016, 美东)
Focusing on using low level SW tools to debug system problems on embedded
products. All levels welcome.
Need knowledge on OS, booting, using jtag tools. Can send resume to me
directly. Thanks
https://jobs.apple.com/us/search?#&ss=47211818&t=0&so=&lo=0*USA
openJobId=47211818
HW/SoC/SW Low Level Failure Analysis Engineer
... 阅读全帖
p****u
发帖数: 1940
4
来自主题: Hardware版 - synology 查看debug log 方法
For users using DSM 2.0-0571 or above
Works for Firefox 2, Internet Explorer 7, Safari 3
1. Login Management UI
2. You can see the similar link http://192.168.1.49:5000/webman/index.cgi
3. Add ?debug=1 to the link, like http://192.168.1.49:5000/webman/index.cgi?debug=1
4. Press "Enter", then the file can be downloaded.
===================
===================
For user using DSM 3.0 or above
1. Log into the DiskStation Manager as admin.
2. The URL will look similar to http://192.168.1.49:5000/webm... 阅读全帖
q**y
发帖数: 129
5
来自主题: JobHunting版 - 问个debug和release mode的问题
1. uninitialized variables 在debug mode 和 release mode下有什么区别?
2. 在release mode下怎么debug(就是debug mode下没bug,但在release mode 下有,怎
么去debug)?
我在网上搜到的是:
"release mode only bugs are caused by uninitialized variables. In debug, the
compiler will help you by auto-initializing variables to special patterns
for you, but in release if not explicitly initialized a variable will hold
whatever value happened to be at that memory location previously, which can
result in unexpected behavior."
我怎么觉得平时在debug mode下写程序
z***e
发帖数: 5393
6
就是要在production上设一个debug flag,然后把所有细节都能log下来。
问题是这个所有细节就有很多,而且很多步。
本来简单的做法就是
void debug(boolean debugFlag, String message) {
if (debugFlag) {
log(message);
}
}
那么caller就会有很多种这种:
debug(flag, "Data1: "+ ...+....+...);
debug(flag, "Data2: "+ ...+....+...);
debug(flag, "Data3: "+ ...+....+...);
但是如果没有设置debugflag,我不知道"Data1: "+ ...+....+...这种string concat
会不会执行。如果是C/C++的话,这种直接inline就好了,但是java又不能inline。
我把它改成:
void debug(boolean debugFlag, String... message) {
...

然后在里面再去concat string,这样是不是好点?
b*******x
发帖数: 100
7
来自主题: Statistics版 - 土问,R SAS是不是是都不能debug?
browser设置断点
debug,undebug不用设置browser,直接进入断点的模式,用来debug s3函数
trace/untrace用来debug s4的函数
options(error=recovery)
遇到错误,自动提示,进入不同的环境
options(warn=2)
将警告变成错误,这样可以当成错误模式debug
R中debug非常方便,C level的debug可以用
gctorture
护着gdb模式
c*********e
发帖数: 16335
8
谁说linq在debug的时候容易找bug?
我把visual studio设置了可以进入linq做debug,但是在debug的时候,linq语句显示为
一个大模块,然后就跳过去了,根本没法debug.
哪位大虾说说?
c*********e
发帖数: 16335
9
谁说linq在debug的时候容易找bug?
我把visual studio设置了可以进入linq做debug,但是在debug的时候,linq语句显示为
一个大模块,然后就跳过去了,根本没法debug.
哪位大虾说说?
T******r
发帖数: 257
10
来自主题: Programming版 - VC++ release VS debug
winxp, vc++ 6.0
写的一个数值计算程序在debug模式下运行很好, 没任何错误.
转到release模式下, 经常会crash, 但是如果不crash, 结果也是对的. crash的概率
大概20%.
请问可能有什么问题?
没法debug啊. debug下总是对的.
我能想到的是 memory leak问题, 但是仔细检查,new的都delete了.
或者是vector的subscript出界了, 但是要出界了debug下应该也会出错.
就算不报错, 计算结果也不可能总是对的.
l***z
发帖数: 61
11
搜索urls.py,有没有DEBUG模式的特殊设置。DEBUG=true模式下,Django本身提供静态
文件像js, image和css的访问;非DEBUG模式下,为提高效率,Django假定会有更效的
Web服务器提供静态文件访问,像libhttpd或者NGINX。
i****1
发帖数: 445
12
来自主题: JobHunting版 - 问一个vs的debug功能
被问到一个问题。
程序要求用户在终端输入一串字符,作为用户密码,程序处理用户输入,检查输入格式
,并隐藏屏幕上的输入字符,还做一些排查,譬如不允许输入数字8。一般的用户输入
case不会有问题,但是某些特殊的输入是有问题的,程序可能会崩溃。现在的目的在把
程序distribute出去前,用debug功能发现程序的问题。例如如果用50000个数据集来跑
我的程序,很大可能某个数据集(譬如第40000个数据)运行时程序会崩溃。问我,如
果用vs的debug功能发现程序有潜在bug。
我想了想,除了让客户发送bmp给我外,debug没有有什么方法可以测试出程序的各种潜
在问题。
是不是有什么高级方法?
f******n
发帖数: 198
13
来自主题: JobHunting版 - 问一个vs的debug功能
看不明白题目什么意思。如果说是debug输出的话,你可以加debug-only code记录程序
做了什么。如果说的是debugger功能的话,IntelliTrace倒是可以有帮助,但那个是VS
Ultimate版本才有的功能。既然问题说distribution之前,估计debug输出的可能性比
较大。
l******9
发帖数: 579
14
【 以下文字转载自 Quant 讨论区 】
发信人: light009 (light009), 信区: Quant
标 题: SQL debug step into a store procedure from another one
发信站: BBS 未名空间站 (Mon Jun 30 11:04:12 2014, 美东)
I have to debug a store procedure on SQL server 2008 R2 on Microsoft sql
studio.
In my SQL query, I have to call two store procedures :
EXEC @return_value = [my_database].[dbo].[store_procedure1]
in [my_database].[dbo].[store_procedure1], I need to call another procedure:
execute @return_status = store_procedure2
in debu... 阅读全帖
b**********4
发帖数: 16
15
来自主题: JobHunting版 - 如何提高debug skill?
Eli Bendersky's website http://eli.thegreenplace.net/
Hex Blog | State-of-the-art code analysis http://www.hexblog.com/
Advanced .NET Debugging http://dotnetdebug.net/
Crash Dump Analysis and Debugging Portal http://dumpanalysis.org/
压力测试中因为Session而导致的OutOfMemoryException内存溢出问题及解决 http://bbs.csdn.net/topics/390033307
《软件调试》之四:断点和单步调试 http://blog.csdn.net/ithzhang/article/details/8566917
Debug Diagnostic Tool - MSDN htt... 阅读全帖
t**r
发帖数: 3428
16
问题是,一个破python code, debug屁阿。
而且这老头不尊重人。每个人有每个人的编程哲学。linux大神就说从不debug.所以
linux kernel里没有原生的debug facility.
出活就行了,而且是同级别的同事。真是脑残。
z*********n
发帖数: 1451
17
来自主题: JobHunting版 - 想请教大家电面时怎么做debug的?
电面不debug,onsite也不debug(白板你咋de?),都是靠人脑。人脑写出来bug free才算
数。
lz没做过LC么?LC里咋debug,莫非你都是在IDE里调好了再贴进去?这么练就练废了。。
g*******a
发帖数: 1383
18
来自主题: BuildingWeb版 - [转载] HELP: ASP.NET DEBUG ERROR
【 以下文字转载自 Programming 讨论区 】
【 原文由 gogowanda 所发表 】
hi comrades,
need some advices on ASP.NET debug error
"unable to debug web server, diasble future debug...?"
i looked up in MSDN and it says the problem is related
to IIS and reset would fix it -- but it didn't fix it.
so i'm wondering if you guys have any ideas i can
try on my project. i'd really appreciate any help.
thanks!
c******n
发帖数: 4965
19
【 以下文字转载自 Programming 讨论区 】
发信人: creation (yy), 信区: Programming
标 题: 求救, SOAP debug / apache error_log
发信站: BBS 未名空间站 (Mon Oct 17 22:00:54 2005), 站内
发信人: creation (yy), 信区: Linux
标 题: 求救, SOAP debug / apache error_log
发信站: BBS 未名空间站 (Mon Oct 17 22:00:48 2005), 转信
I used to debug a soap service from apache error_log,
for example, if my service.pm
uses some non-existent module,
like
use no_such_module;
then error_log would say this module can not be found....
but somehow my apache stopped printi
h******u
发帖数: 155
20
还有他的一些 delta debugging的paper。 其他关于debugging的paper 太多太多了,
不知道lz想做research还是 像学习一些debugging的experience.
l******9
发帖数: 579
21
【 以下文字转载自 Quant 讨论区 】
发信人: light009 (light009), 信区: Quant
标 题: SQL debug step into a store procedure from another one
发信站: BBS 未名空间站 (Mon Jun 30 11:04:12 2014, 美东)
I have to debug a store procedure on SQL server 2008 R2 on Microsoft sql
studio.
In my SQL query, I have to call two store procedures :
EXEC @return_value = [my_database].[dbo].[store_procedure1]
in [my_database].[dbo].[store_procedure1], I need to call another procedure:
execute @return_status = store_procedure2
in debu... 阅读全帖
m*****k
发帖数: 731
22
来自主题: Java版 - How you guys debug applet?
I am following http://www.ibm.com/developerworks/java/library/os-eclipse-javadebug/index.html?ca=drs-
but usually in eclipse debug tab, it won't connect, just shows "...
connection...", or it connects but once I am on the jsp that really contains
the applet I wanna debug, the debug session in eclispe terminates
automatically.
Very annoying, I have to use a lot of system.out or JOptionpane to show me
the info.
any better solution?
w*s
发帖数: 7227
23
in windows, you can build the image, and its pdb file (which is used for
debugging.)
so you ship a small size of image to customer.
if it crashes, you have the pdb file in house for debugging.
how about linux ?
m**k
发帖数: 290
24
remote debugging and debugging shared lib are two separate problems.
To debug shared lib with gdb, checkout the add-symbol-file command
G********7
发帖数: 256
25
来自主题: Programming版 - debug的问题
我的一个程序,运行到两个多小时的时候总是在一个地方crash。我想debug这个问题,
可是每次都要等很久才能等到运行到断点。请问有没有什么办法,能把某个时候程序
的所有信息都保存下来,下次debug的时候只需要load一下就可以了?程序是C++的,
现在是在vc2008里面debug,用gcc+gdb也可以。谢谢!
t****t
发帖数: 6806
26
Is there any reason that you want to exclude some of the default libraries?
in debug config, you excluded libcmt.lib and libcmtd.lib, and you can pass,
which means you must have been using msvcrtd.lib.
in release config, you excluded libcmt.lib and msvcrtd.lib, supposedly you
should use msvcrt.lib, but seems something is wrong with your compiler
option (/MT vs /MD, etc)
and by the way, /DEBUG is normal, which means include debug information.
even in release mode you can include that, and by defa... 阅读全帖
c*****m
发帖数: 1160
27
python/django新手,看完了 Writing your first Django app, part 1/2/3/4.
接手一个python2.6/django1.4的项目,没有文档,只有代码。
安装完毕,在settings.py里面,debug=true就很好;debug=false,css就找不到,版
面都乱了。我查看 static_url, site_media,都比较正常。
请问应该查一些什么?谢谢。
l******9
发帖数: 579
28
【 以下文字转载自 Quant 讨论区 】
发信人: light009 (light009), 信区: Quant
标 题: SQL debug step into a store procedure from another one
发信站: BBS 未名空间站 (Mon Jun 30 11:04:12 2014, 美东)
I have to debug a store procedure on SQL server 2008 R2 on Microsoft sql
studio.
In my SQL query, I have to call two store procedures :
EXEC @return_value = [my_database].[dbo].[store_procedure1]
in [my_database].[dbo].[store_procedure1], I need to call another procedure:
execute @return_status = store_procedure2
in debu... 阅读全帖
l******9
发帖数: 579
29
【 以下文字转载自 JobHunting 讨论区 】
发信人: light009 (light009), 信区: JobHunting
标 题: debug error unable to automatically step into the server in VS 2013 on win 7
发信站: BBS 未名空间站 (Sun Jan 25 10:09:24 2015, 美东)
I am doing debug in C# for project with web services in VS 2013 on win 7.
I got error:
visual studio unable to automatically step into the server.
unable to determine a stopping location. Verify symbols are located.
Error while processing breakpoints
I have checked the links of :
https://msdn.m... 阅读全帖
l******9
发帖数: 579
30
【 以下文字转载自 JobHunting 讨论区 】
发信人: light009 (light009), 信区: JobHunting
标 题: debug error unable to automatically step into the server in VS 2013 on win 7
发信站: BBS 未名空间站 (Sun Jan 25 10:09:24 2015, 美东)
I am doing debug in C# for project with web services in VS 2013 on win 7.
I got error:
visual studio unable to automatically step into the server.
unable to determine a stopping location. Verify symbols are located.
Error while processing breakpoints
I have checked the links of :
https://msdn.m... 阅读全帖
J******d
发帖数: 506
31
来自主题: Quant版 - 用Visual Studio 2008 debug DLL.
请教大家一个问题。
我最近用visual studio 2008 debug一个自己写的很小很小的dll. 在Excel里面用这个
dll什么问题都没有。就是用visual studio debug启动Excel的时候总要弹出
Debug Informaiton for "EXCEL.EXE" cannot be found. Symbols not loaded...
基本情形和这个人问的一致:
http://www.wilmott.com/messageview.cfm?catid=10&threadid=69512
但是我不知道怎么解决这个问题。也看不明白wilmott上面说的是什么意思。
请赐教,感谢!
D******n
发帖数: 2836
32
Let me share with you some tricks or techniques i use to debug or facilitate
debugging SAS codes in Linux environment.
> proc print with obs= option. (ya very simple very naive)
> endsas statement.
> /* */ to comment out codes.
> sas -obs ### xxxx.sas (SAS options need not to be hard written in the
script, you can call it when batch running it)
> use put in data step to monitor SAS variable.
> use mprint, mlogic, symbolgen, source, source2 to debug macros.
> use %put to monitor macro variable.
>... 阅读全帖
k*****u
发帖数: 1688
33
dont forget to check ERROR WARNING in the log file.
send out output to email.
merge/inner join/ left join/ right join, don't forget to check if they are
correct. check if the key variable should be unique or not.
Join a small table with a large table, index them .
join a large table with a large table(I once did a 3M table left join
1billion table), proc sql left join takes more than 3 days and not finished.
Then I tried split the 2M table to a small table with 5k obs each, then use
macro and lo... 阅读全帖
l******9
发帖数: 579
34
【 以下文字转载自 Statistics 讨论区 】
发信人: light009 (light009), 信区: Statistics
标 题: R studio 进入debug状态后, 很慢 ?
发信站: BBS 未名空间站 (Thu Apr 10 23:52:15 2014, 美东)
在用 R studio 做 R code 开发。
如果 不设 breakpoint, R code 从什么地方开始运行 , R code 没有 main 函数 ?
为什麽 进入 debug 状态 以后, R studio 变得 很慢, 我按执行下一行 按钮, 没
反应 ?
按 source on save button ,程序从哪里开始运行?
谢谢
l******9
发帖数: 579
35
I am doing debug in C# for project with web services in VS 2013 on win 7.
I got error:
visual studio unable to automatically step into the server.
unable to determine a stopping location. Verify symbols are located.
Error while processing breakpoints
I have checked the links of :
https://msdn.microsoft.com/en-us/library/bb157687.aspx
https://msdn.microsoft.com/en-us/library/65004e38.aspx
VisualStudio - step into another project with different .NET version
https://msdn.microsoft.com/en-us... 阅读全帖
t**r
发帖数: 3428
36
公司有个老头极其傻逼,非要教我用pycharm怎么debug程序
哥写脚本语言从来不debug,加log,trace直接就指导怎么錯了。
pychard还要配置半天,哥就不用,老头就生气。也是服了。
e***a
发帖数: 1661
37
来自主题: JobHunting版 - 如何有效 DEBUG 开源软件中的 BUG?
当遇到开源软件中不可绕过的 BUG,如何有效地进行 DEBUG?
在 JIRATICKET 上贴一个报告等待别人处理,
还是从 GITHUB 上 PULL 整个 SOURCE CODE 到自己的电脑中进行 DEBUG?
现在我确定 spring batch 2.2.0 有一个恶心的 BUG,需要尽快解决。
s****r
发帖数: 31686
38
来自主题: NextGeneration版 - How to debug: 婴儿为何啼哭?
【 以下文字转载自 Detective 讨论区 】
发信人: shaver (印度的决心!), 信区: Detective
标 题: How to debug: 婴儿为何啼哭?
发信站: BBS 未名空间站 (Tue Jan 1 18:10:47 2013, 美东)
建议从下列方面进行debug:
1. 是否饥饿? 可以观其言察其形
2. 不肯吃奶, 上下扭动, 可以解开包袱, 观察尿布
3. 如有屎尿, 更换之。 但是有的学派认为应该先喂奶, 再换尿片, 客观上形成坐
在大便上吃饭的效果, 这样是否科学值得商榷
4. 更换尿片之后, 还是不肯吃, 依然啼哭扭动
, 是否又拉了值得怀疑, 建议再次检查尿片。
5. 更换尿片之后, 如果刚刚拉了很多粑粑, 应该是肯定饿了, 此时喂奶可收事半功
倍之效, 犹如雪中送炭, 该婴儿自会感激
6. 如果依然啼哭, 又穿了新衣服, 建议检查新衣, 看是否有什么别针之类作祟
7. 如果继续啼哭, 建议开始考虑是否该婴儿是带病坚持吃奶睡觉等等。。。
总而言之, 思路要广, 思维要有逻辑, 手脚不能慌乱, 要不会形成大人婴儿双败局
面, 和18大倡导... 阅读全帖
f******n
发帖数: 198
39
You mean remote debugging?
s*****w
发帖数: 1527
40
no, it's custom debug agent/port.
Any public doc on this pls ?
we've worked on this for 3 weeks, seems no good doc to tell us how the
thing works from high level.
Many thanks !
c********l
发帖数: 8138
41
来自主题: BuildingWeb版 - IIS+PHP 如何debug??? (转载)
【 以下文字转载自 Programming 讨论区 】
发信人: coupondeal (Coupon Deal), 信区: Programming
标 题: IIS+PHP 如何debug???
发信站: BBS 未名空间站 (Sun May 5 18:06:49 2013, 美东)
IIS+PHP 如何debug?
另外,如何查看PHP的log/console?
e***a
发帖数: 1661
42
当遇到开源软件中不可绕过的 BUG,如何有效地进行 DEBUG?
在 JIRATICKET 上贴一个报告等待别人处理,
还是从 GITHUB 上 PULL 整个 SOURCE CODE 到自己的电脑中进行 DEBUG?
现在我确定 spring batch 2.2.0 有一个恶心的 BUG,需要尽快解决。
a*******t
发帖数: 891
43
来自主题: DotNet版 - Newbie Question about Debugging
I am new to C#.NET. I know I can use Trace.Write to print debug information to
the aspx page. What about the classes that don't have a "front" aspx page? How
do I print debugging information?
Thanks!
s***n
发帖数: 10693
44
u sure u built the managed code under debug mode and it came with a pdb file?

I have an unmanged code that calls a managed code dll. I wrote both code. It
works OK. But how can I debug into the managed code dll from within the
unmanaged code? In visual studio,it just doesn't go into the managed code
when I tried to step into it in the unmananged code. any idea? Thanks.
s******e
发帖数: 96
45
I am sure. The *.tlb, *.pdb and *.dll are all in same debug directory. To
call the managed code, I imported the debug *.tlb file in the unmanaged code
. anything else to check? Thanks.
L******e
发帖数: 136
46
来自主题: DotNet版 - 这样的deadlock如何debug? (转载)
【 以下文字转载自 Programming 讨论区 】
发信人: Leyunque (Le yunque), 信区: Programming
标 题: 这样的deadlock如何debug?
发信站: BBS 未名空间站 (Sun Jan 6 14:01:10 2013, 美东)
一个多线程程序,(C#),所有的Lock看起来都没有问题,运行起来会有Deadlock。程
序本身读取多个文件并存入数据库,(SQL server),有可能是C# Lock和SQL server
lock相互产生deadlock。
如何debug这样的情况呢?
c****0
发帖数: 1
47
经常出这个很烦啊。每次如果debug就load微软的vb软件显示一大堆代码也跟本没办法
debug。。
不知道设么时候开始,只要网页打开得慢一点这个报警框就出现。为什么阿?怎么去掉
??
k******p
发帖数: 21
48
First add Tomcat to Eclipse runtime server,
From Eclipse run menu,
Debug as -> Debug o server (tomcat)
g*****g
发帖数: 34805
49
log.debug( "a" + "b"), concatenation occurs before the debug call.
that's why you need isDebugEnabled()
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)