在IDE中提供COMPILER,DEBUGGER工具 [英] providing COMPILER, DEBUGGER facility in IDE

查看:73
本文介绍了在IDE中提供COMPILER,DEBUGGER工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从事c编辑器项目,我的问题是如何为我的ide提供编译器和调试器?"

请帮助我.谢谢..

I m working on c editor project, my que is "how to provide compiler and debugger for my ide ?"

Plz help me.. Thanks you..

推荐答案

您可以执行外部编译器(例如NMake),甚至可以执行调试器.我怀疑您会在Google上找到带有相应搜索词组的信息.
You could execute an external compiler (like NMake), and even a debugger. I suspect you''ll find info on google with the appropriate search phrase.


提供编译器相对容易.您需要使用System.Diagnostics.Process来跨越运行编译器的进程.您需要做的主要事情是将stdoutstderr流重定向到您的程序创建的流.这样,您将能够向控件提供错误和编译器输出.请参阅Process.StandardErrorProcess.StandardOutput.

同样,这是可行的.这就是我在获得Visual Studio.NET之前就开始Java开发甚至.NET开发的方式:使用重定向的编译器流创建了自己的编辑器.

请查看我对类似问题的新答案的更多详细信息,在此我根据我对不同问题的答案给出了更多详细信息: ^ ].

—SA
Providing a compiler is relatively easy. You need to use System.Diagnostics.Process to span a process running a compiler. Main thing you need to do is to re-direct stdout and stderr streams to the streams created by your program. In this way you will be able to present errors and compiler output to your controls. See Process.StandardError, Process.StandardOutput.

Again, this is feasible. This is how I started Java development and even .NET development before I got Visual Studio.NET: created my own editor with redirection of compiler streams.

Please see more detail my new Answer to a similar Question, where I put more details based on my Answers on different questions: invoking compiler from our application[^].

—SA


要查看SAKryukov的实时"示例"答案-请查看:
#develop(SharpDevelop的缩写)是针对C#,VB.NET和Boo项目的免费IDE [ ^ ]

如果您正在使用IDE,则查看成功的实现可能非常有用-祝您好运:)

问候
Espen Harlinn
To see a ''live'' example of SAKryukovs'' answer - take a look at:
#develop (short for SharpDevelop) is a free IDE for C#, VB.NET and Boo projects[^]

If you are working on an IDE - looking at a successful implementation could be quite useful - good luck :)

Regards
Espen Harlinn


这篇关于在IDE中提供COMPILER,DEBUGGER工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆