ALA geting started

Write in ide editor:

s="Alice has a cat"
print(s)
  1. Save as test1.fsp
  2. Compile
  3. find and run test1.exe opening new cmd window or use run ide menu. In second case print output will be found in ide command window

Now try go button. If code was changed than compilation is started, than program is executed in debug mode.

Close fsp debugger session window.

Select all instructions

and use edit -> indent region and you have:

	s="Alice has a cat"
	print(s)

Enter 2 to goto textbox and use goto line button to navigate to entered line

Enter Alice to find textbox and use find button

Move cursor to s=Alice has a cat line and use disassemble menu to see how line was coded.

Now new code:


int fun1(int i)=
	x=i+1	#set breakpoint here double clicking line
	x=x+1
	x=x+1
	return x

a=1
b=fun1(a)
c=b

After compile function list contains function fun1. Using this list we can find function code just clicking function name.

Now debugging, first debug menu :show windows to see watches list.

New breakpoint is set double clicking line, to remove breakpoint double click line again.
Debuggee stops before breakpoint line. Now we can use go button.

Watches list contains variables from current module: module that contains current breakpoint line.

To add own watched variable first choose program init, for instance fun1 by clicking one code line from this unit, then enter x to find text box and then use debug -> add watch menu.

Add watch module or function based on cursor line, variable name is taken from find text box.