I'm very new to cobra (started today). What I see is inspiring.
I did not see any discussion on a debugger. The IDE discussion was not very encouraging.
As a developer of very many years, I've realized that a good IDE (a-la VS2010 or Eclipse) that provides auto-complete with color syntax-coding with a good debugger (break points, single step, edit & continue) are a must.
Any news on a good visual IDE with a good debugger?
-David
Forums
Debugger and IDE
4 posts
• Page 1 of 1
Re: Debugger and IDE
For a debugger, your best bet is the SharpDevelop add-in.
For syntax highlighting, any editor or IDE will do.
Btw Cobra is an open source project and I'm always busy on the language, libraries, promotion, etc. such that I don't have time to implement the IDE support. Any contributions in this area are appreciated. Especially for Visual Studio, MonoDevelop and SharpDevelop. Of course, I'm available for Q&A for anyone working on IDE support.
There are at least 6 language features that mitigate the need for a debugger including:
-- contracts
-- built-in unit tests
-- informative asserts
-- compile-time nil tracking
-- trace statement
-- suggestions for unknown identifiers (found in the error message)
Also, in the library/source:
-- ObjectExplorer
So that is how we've been getting along for so long without a debugger. Although I'm not disagreeing that autocompletion and an integrated debugger would be that much nicer on top of what we have.
For syntax highlighting, any editor or IDE will do.
Btw Cobra is an open source project and I'm always busy on the language, libraries, promotion, etc. such that I don't have time to implement the IDE support. Any contributions in this area are appreciated. Especially for Visual Studio, MonoDevelop and SharpDevelop. Of course, I'm available for Q&A for anyone working on IDE support.
There are at least 6 language features that mitigate the need for a debugger including:
-- contracts
-- built-in unit tests
-- informative asserts
-- compile-time nil tracking
-- trace statement
-- suggestions for unknown identifiers (found in the error message)
Also, in the library/source:
-- ObjectExplorer
So that is how we've been getting along for so long without a debugger. Although I'm not disagreeing that autocompletion and an integrated debugger would be that much nicer on top of what we have.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
Re: Debugger and IDE
djmarcus wrote:I'm very new to cobra (started today). What I see is inspiring.
Today is also my first day of using Cobra and I'm very enthusiastic about what I've found, I think big thanks and congratulations are due to Chuck.
I hadn't seen the page that linked to the other IDEs so I actually spent the morning figuring out how to enable highlighting in PSPad, which is my favourite text editor. I have it so it now does syntax highlighting, calls the compiler, displays the compilers output in a separate pane and also displays a class browser. That's plenty good enough for me for now.
This is what I did just in case anyone else is interested:
First use PSPad to open a new *.ini file, then copy and paste the following text and save it as 'Cobra.ini' in the 'Syntax' sub directory of your PSPad install directory:
- Code: Select all
;PSPad user HighLighter definition file
[Settings]
Name=Cobra
HTMLGroup=0
Label=1
FileType=*.cobra
CommentString=
SharpComment=1
Preprocessors=1
IndentChar=
UnIndentChar=
TabWidth=4
CaseSensitive=1
SingleQuote=1
DoubleQuote=1
KeyWordChars=_
CodeExplorer=ftPy
[KeyWords]
adds=
all=
and=
any=
as=
assert=
body=
branch=
break=
callable=
catch=
class=
const=
continue=
cue=
def=
do=
dynamiceach=
else=
end=
ensure=
enum=
event=
every=
except=
extend=
finally=
for=
from=
get=
has=
if=
ignore=
implements=
implies=
in=
inherits=
inlined=
inout=
interface=
invariant=
is=
listen=
lock=
mixin=
must=
namespace=
not=
objc=
of=
old=
on=
or=
out=
pass=
passthrough=
post=
print=
pro=
raise=
ref=
require=
return=
same=
set=
sig=
stop=
struct=
success=
test=
throw=
to=
trace=
try=
using=
var=
vari=
where=
while=
yield=
[ReservedWords]
Array=
char=
Color=
decimal=
dynamic=
DateTime=
Dictionary=
Exception=
float=
float32=
float64=
int=
int8=
int16=
int32=
int64=
ICloneable=
IComparable=
IDictionary=
IEnumerable=
IList=
List=
number=
Object=
Queue=
Set=
Stack=
StreamReader=
StreamWriter=
String=
StringBuilder=
StringReader=
StringWriter=
TextReader=
TextWriter=
uint=
uint8=
uint16=
uint32=
uint64=
[KeyWords2]
true=
false=
nil=
use=
import=
base=
this=
[KeyWords3]
abstract=
fake=
internal=
new=
nonvirtual=
override=
partial=
private=
protected=
public=
shared=
virtual=
From the 'Settings' menu select 'Highlighters Settings'
On the 'Specification' tab select one of the <not assigned> items in the left hand panel and then select 'Cobra' from the 'User Highlighters' list in the neighbouring panel. <not assigned> will then be replaced with 'Cobra', make sure the attached check box is ticked.
On the 'Compilers' tab set the compiler path to wherever you have installed Cobra.exe, set the parameters field to %File% (any other switches should bet set with @args in the *.cobra file itself).
Check these three check boxes on the bottom of the 'Compiler' tab:
'Save All Files Before Compilation'
'Capture Program Output Window'
'Hide Output Window'
On the 'Colors' tab you can select a font and colour you like for each of the headings defined in the text above.
To display the class browser select 'Code Explorer Window' from the tools window, if it opens as a separate window you can drag and drop it on to the tool panel on the left hand side and then it will just become an additional tab. If it is not displaying the classes in your current file right click in its window and select 'Refresh' from the context menu.
Now when you want to compile select 'Compile' from the 'File' menu, a new pane will open (if it's not there already) at the bottom of the editor that displays the compilers messages.
Although PSPad is a Windows app I know it also runs fine with Wine on Linux Mint as I have it on one of my laptops, although I haven't (yet) tried getting that to call Cobra.
- Weave
- Posts: 2
Re: Debugger and IDE
I added PSPad to the EditorSupport wiki page and stubbed it out. You can flesh it out, if you like. The wiki/trac login is the same as your forums login.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 45 guests