This debug tool helps you directly write input and get output in Free Pascal Compiler without writing a new file.
Note: FPConsole requires Free Pascal Compiler installed on the system. Download here
These instructions are available in latest version ( v1.5.1 ). For old version, checkout wiki page for proper parameter.
fpconsole [command]
Command Prompt : fpconsole [command]
C:\> fpconsole "write('Hello World');"
Powershell : .\fpconsole [command]
PS C:\> .\fpconsole "write('Hello World');"
./fpconsole [command]
$ ./fpconsole "write('Hello World');"
fpconsole [Code] [Parameter]
fpconsole -f [File Include Code] [Parameter]
fpconsole -fe [Parameter]
fpconsole -fs [Source Code File] [Parameter]
Example
PS C:\> .\fpconsole "write('Hello World')" "-e" "Hello"
# This will execute with parameter "-e" and "Hello"
PS C:\> .\fpconsole -f "Code.dat"
# This will read main program from "Code.dat"
PS C:\> .\fpconsole -fe
# This will open notepad/nano to edit
PS C:\> .\fpconsole -fs "Code.pas"
# This will copy "Code.pas" then compile
Add UNIT to __unit.dat_
sysutils,
graph,
...
Add TYPE to __type.dat_
Int = -128..128;
a = array[1..100] of integer;
...
Add CONST to __const.dat_
s = 'Hello';
pi = 3.14;
...
Add VAR to __var.dat_
s: string;
i,j,m,n: integer;
...
SysFind();
function not working properly-fe
) (#13)Old File Name | New File Name |
---|---|
unit.dat | _unit.dat |
var.dat | _var.dat |
const.dat | _const.dat |
type.dat | _type.dat |
-h
), Clear (-c
), Read Source (-fs
).MIT License (c) Nguyễn Tuấn Dũng (@winux8yt3)