S*A 发帖数: 7142 | 1 虚拟机这个我可是非常熟啊。
可是真正开发用虚拟机还是不爽。
有些地方是完全不能用,例如那个 OSX VM 跑
xcode 的模拟器调蓝牙4 的设备肯定连不上。
IOS 开发还是建议搞个正经的 MacMini.
凡是用到 HID 类的非键盘 USB 设备,例如
很多 ARM 的 JTAG-Debugger 在 VM 里就是
没法用。这个是由于 VM 毕竟要把 IO 搞两次,
一次在 GUEST, 一次在 HOST, 延时上去了很多
比较敏感的设备就歇菜了。这个是硬伤,没法逾越的。
如果没有外设问题的花,很多 VM 还能勉强一下。
对严肃开发来说 VM 一般都是太慢。 |
|
m**k 发帖数: 290 | 2 what kind of debugging?
normally you provide pid to the debugger.
be |
|
h***y 发帖数: 6 | 3 我在windows下用Visual C++ .net写C++程序.编译通过,但用debugger调试程序,首先在
for loop 里,程序有时执行几行就跳回for,有时又从for直接跳到loop里下面几行.而且
loop counter的值在watch window中一直不变.e.g. for (n=0;n<100;n++) watch window
中n的值
总是loop前的值,但我在loop中cout n 的值又是正确的.
请问是不是我的VC++ .net有问题?
BTW,我用的是从学校Microsoft Software Developer Network - Academic Alliance下载
的
Microsoft Development Environment 2003 Version 7.1.3088 和 Microsoft .NET
Framework Version 1.1.4322 SP1
多谢高人指点? |
|
p*u 发帖数: 2454 | 4 use a debugger to figure out where the seg fault occurs. |
|
p*u 发帖数: 2454 | 5 why there's no debugger, valgrind, performance analysis tool?? |
|
k*k 发帖数: 508 | 6 debugger 我说了 ddd,valgrind 我上面提了 (memory leaking). performance
analysis 这个倒是真的忘了。 |
|
t*****s 发帖数: 49 | 7 很久以前用过一阵insight, 记得只要在insight里打开.exe文件就会显示对应的.c文件。
可现在打开.exe看到的都是不可读的机器码,用最简单的程序(如下)试了也不行。
#include
int main()
{
double x=1.4;
printf("This is a C program\n");
return 0;
}
请问我是忘了哪个步骤吗?
多谢指点。 |
|
c**t 发帖数: 2744 | 8 【 以下文字转载自 DotNet 讨论区 】
发信人: cogt (苦荆茶), 信区: DotNet
标 题: PicutureBox and GIF
发信站: BBS 未名空间站 (Wed Jun 27 10:53:37 2007), 转信
I have an animation gif file assigned to pictureBox:
pbStatus.Image = System.Drawing.Image.FromFile("runningRabbit.gif")
in designer the rabbit is running, but when run from debugger or released
app,
the rabbit is still. What's wrong? |
|
O******e 发帖数: 734 | 9 At the beginning of the quoted code, TPS[0...3] is printed.
In the for-loop, at the end of the printf statement TPS[iCpt]
is printed again where iCpt=1...?. However I can't match up the
output with the code, even after seeing the "correction".
kosine you need to post a clearer explanation of what you see
as wrong. Print the address of the variable and the value of
the variable, or run the code in a debugger, make sure you are
looking at the same thing. |
|
b*******b 发帖数: 613 | 10 yes, it did with "/Zi"
guess its some debugger setting problem, not sure...
using |
|
z******i 发帖数: 59 | 11 可能是一样的。在debugger里他们都是指针。 |
|
w****g 发帖数: 44 | 12 This is not MFC related. I just used VC as a editor,compiler and debugger.
which file stores such info ? |
|
h****e 发帖数: 2125 | 13 那推荐个好点儿的debugger吧,Unix上能用就行。 |
|
O******e 发帖数: 734 | 14 Run in debugger to trace the problem.
and |
|
w****h 发帖数: 212 | 15 我不知道怎么在debugger中trace,只会在delphi里trace
但这个问题我已经解决了,多谢 |
|
p***o 发帖数: 1252 | 16 Insert an int 3 to your functions in A, see if the debugger loads
the sources. |
|
p***o 发帖数: 1252 | 17 在debugger里启动B看看。
如果你的VC安装没有问题,你可以调试已经在运行的程序(process)。
他说不能attach,那估计是你没安装好。 |
|
l*i 发帖数: 50 | 18 在debugger里启动B,貌似没有在INT 3位置中断,而是直接往后运行了。。
这个VC莫非真没装好。 |
|
r********d 发帖数: 23 | 19 Our parallel computing teacher said 'printf' is more effective than any
debugger when it comes to multithreading or multi-process... |
|
r*********r 发帖数: 3195 | 20 cpu 和 内存都涨了 1000 倍不止。
编程工具(compiler,library,debugger etc)进步很小,
感觉有新意的就只是stl和boost的一些东西。 |
|
m*****e 发帖数: 4193 | 21 it normally involves detecting debuggers.. |
|
|
j******y 发帖数: 700 | 23 谢谢,那怎么看到所有的变量名呢?就是那个symbol table里面的变量名 |
|
d****p 发帖数: 685 | 24 System table only hosts package variables, not lexical variables.
Use "y" to list all viable lexical variables in current scope. |
|
d****p 发帖数: 685 | 25 System table only hosts package variables, not lexical variables.
Use "y" to list all viable lexical variables in current scope. |
|
l***8 发帖数: 149 | 26 来自主题: Programming版 - dll求救 What happens when you single-step into one of your dll
function entry points from your debugger?
If you're seeing only x86 disassembly then probably you
need to figure out how to set your symbol path |
|
l***8 发帖数: 149 | 27 来自主题: Programming版 - dll求救 try single step with disassembly
most likely you'll just see a bunch of hex addresses on the callstack
each debugger is different so you'd better check help document |
|
O*****l 发帖数: 13 | 28 请教这里的C++ guru们,谁能解释一下以下几种C++继承中的基类和继承类在内存中是什
么样的结构:
class A
{
int fieldA;
int func();
}
class B : class A
{
int fieldB;
int func();
}
1. inheritance without virtual functions
[This I know] the memory layout is as simple as: [fieldA fieldB]
2. inheritance with virtual functions
[Not quite clear] looks like in debugger memory [vtprA fieldA fieldB]
should there be a vtable pointer for B?
3. multiple inheritance if there is a class C:A and a class D:B, C
4. multiple inheritance with virtual |
|
l***8 发帖数: 149 | 29 Depends on how fluent you are with x86 assembly. You can probably still hook
up a debugger with OS symbols and figure out quite a lot about the
executable's Win32 API calling sequence. |
|
b***y 发帖数: 2799 | 30 ☆─────────────────────────────────────☆
freesoon (freedom) 于 (Fri May 25 01:35:49 2007) 提到:
发信人: liandage (alan), 信区: CS
标 题: An interview question, what is the answer?
发信站: BBS 未名空间站 (Sat May 12 21:57:17 2007)
You are given a the source to an application which is crashing when run.
After running it 10 times in a debugger, you find it never crashes in the
same place. The application is single threaded, and uses only the C
standard
☆─────────────────────────────────────☆
BigWhite (25号) 于 |
|
l*****d 发帖数: 359 | 31 有时候debug功能会失灵或混乱,有谁用过这个debugger么? |
|
n******t 发帖数: 4406 | 32 那应该是教得不好。
我倒是觉得IDE对新手还是有用的。
我遇到不少已开始就用命令行写C/C++的,被指针错误弄得抓狂,
最后干脆放弃了。而用VC的debugger,一步步调试,一会就通了,
以后慢慢不犯低级错误了,换成命令行也容易。 |
|
c****e 发帖数: 1453 | 33 那么多讨论debugging的帖子都没有提到windbg的.难道大家在windows上debug都是VS?
windows和gdb相比较的是windbg,超级强大. VS完全是另外一个路子的, 虽然code base
开始是一样的. 当然manage code debugger那一套还是VS方便. windbg超多extension,
一点不比gdb弱. tracing还有基于trace的checker windows也有很多方案, 不比
valgrind差, 不光是memory leak, registry, file, concurrency都可以check. |
|
c****e 发帖数: 1453 | 34 en.可能我没说清楚.windbg就是debugger.valgrind是个emulator.valgrind有个缺点是
纯粹runtime的,不能take a trace然后在trace file上做。我还是两年前用过,不知
道现在怎么样。
发信人: thrust (祝阳阳早日康复), 信区: Programming
标 题: Re: Re: 编程语言选择问题
发信站: BBS 未名空间站 (Thu Jan 8 03:01:27 2009), 转信
我相信windbg走的和valgrind不是同一个路子, 功能也不能相比
valgrind基本上是个模拟器, boundschecker还比较接近
可能因为我做硬件, 对模拟器比较熟-_- |
|
n******t 发帖数: 4406 | 35 This is much less convenient than UNIX.
You need to run the program under the debugger.
able |
|
s******n 发帖数: 21 | 36 minidump is mainly used for Post-Mortem debugging. So, if you porgram
crashed at a customer site(no debugger installed), you can get the minidump
file and start VS or windbg to debug it(assuming that you have correct pdb
files).The downside is that you have to add extra code to your program to
generate the dump. I am not sure linux/unix needs that.
dbghelp
,
the |
|
O*******d 发帖数: 20343 | 37 有些警告是不可避免的。 例如,当你在debugger下用C++ STL, 就有警告说最长变量
名是256字符。长于256就会
被砍掉。出现这种警告是因为编译器把STL的变量名展开就会很长很长,除非两个变量
的名被砍掉后碰巧一样,这种警
告一般是完全可以忽略。 |
|