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');"
- Linux Terminal :
./fpconsole [command]
$ ./fpconsole "write('Hello World');"
- Execute With Custom Parameter
fpconsole [Code] [Parameter]
- Get Code From a Text File
fpconsole -f [File Include Code] [Parameter]
- Edit Source File Before Compiling
fpconsole -fe [Parameter]
- ...or Get The Whole Source Code
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;
...
- https://github.com/dungwinux/fpconsole
- https://dungwinux.github.io/fpconsole
- https://sourceforge.net/projects/fpconsole
- Fix
SysFind();
function not working properly - Add icon
- Open defualt editor to edit source before compiling (
-fe
) (#13) - Add execution time (#11)
- Code now can execute with custom parameters
- Add color
- Change Input Folder:
Old File Name | New File Name |
---|---|
unit.dat | _unit.dat |
var.dat | _var.dat |
const.dat | _const.dat |
type.dat | _type.dat |
- Add support for Linux
- Fix #5
- Change Work Folder to %TEMP%.
- Add Help (
-h
), Clear (-c
), Read Source (-fs
).
- Automatic Find FPC Directory.
- Fix Directory.
- First Release.
MIT License (c) Nguyễn Tuấn Dũng (@winux8yt3)