To Do's:
- To do - Add an invisble caching mechanism.
- To do - Extend the invisible caching mechanism to adds/removes to improve efficiency.
- To do - Use InsertAllOnSubmit / DeleteAllOnSubmit with caching mechanism if they are faster / more efficient.
- To do - Create extra Add methods that take required fields as arguments to increase ease of coding elsewhere / reduce code duplication.
Kernel.Debug.Data DebugDatabase
Namespace: Kernel.Debug.Data
Assembly: Kernel.Debug.Data (in Kernel.Debug.Data.dll) Version: 1.0.0.0 (1.0.0.0)
The DebugDatabase type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | DebugDatabase |
Name | Description | |
---|---|---|
![]() ![]() | AddArgument |
Adds the pre-created argument to the database. All the entries's
required parameters (i.e. ones which cannot be null) should
be set.
To Do's: See AddMethod(DB_Method)'s to do's. |
![]() ![]() | AddComplexTypeLink |
Adds the pre-created complex type link to the database. All the entries's
required parameters (i.e. ones which cannot be null) should
be set.
To Do's: See AddMethod(DB_Method)'s to do's. |
![]() ![]() | AddILOpInfo |
Adds the pre-created IL op info to the database. All the entries's
required parameters (i.e. ones which cannot be null) should
be set.
To Do's: See AddMethod(DB_Method)'s to do's. |
![]() ![]() | AddLocalVariable |
Adds the pre-created local variable to the database. All the entries's
required parameters (i.e. ones which cannot be null) should
be set.
To Do's: See AddMethod(DB_Method)'s to do's. |
![]() ![]() | AddMethod |
Adds the pre-created method to the database. All the entries's
required parameters (i.e. ones which cannot be null) should
be set.
To Do's:
|
![]() ![]() | AddStaticField |
Adds the pre-created static field to the database. All the entries's
required parameters (i.e. ones which cannot be null) should
be set.
To Do's: See AddMethod(DB_Method)'s to do's. |
![]() ![]() | AddStringLiteral |
Adds the pre-created string literal to the database. All the entries's
required parameters (i.e. ones which cannot be null) should
be set.
To Do's: See AddMethod(DB_Method)'s to do's. |
![]() ![]() | AddType |
Adds the pre-created type to the database. All the entries's
required parameters (i.e. ones which cannot be null) should
be set.
To Do's: See AddMethod(DB_Method)'s to do's. |
![]() ![]() | Empty |
Empties all the database's tables.
|
![]() ![]() | GetArgument |
Gets the specified argument from the database.
To Do's: See GetMethod(String)'s to do's. |
![]() ![]() | GetComplexTypeLink |
Gets the specified complex type link from the database.
To Do's: See GetMethod(String)'s to do's. |
![]() ![]() | GetILOpInfo |
Gets the specified IL op info from the database.
To Do's: See GetMethod(String)'s to do's. |
![]() ![]() | GetLocalVariable |
Gets the specified local variable from the database.
To Do's: See GetMethod(String)'s to do's. |
![]() ![]() | GetMethod |
Gets the specified method from the database.
To Do's:
|
![]() ![]() | GetStaticField |
Gets the specified static field from the database.
To Do's: See GetMethod(String)'s to do's. |
![]() ![]() | GetStringLiteral |
Gets the specified string literal from the database.
To Do's: See GetMethod(String)'s to do's. |
![]() ![]() | GetType(Guid) |
Gets the specified type from the database.
To Do's: See GetMethod(String)'s to do's. |
![]() ![]() | GetType(String) |
Gets the specified type from the database.
To Do's: See GetMethod(String)'s to do's. |
![]() ![]() | RemoveArgument |
Removes the specified argument from the database.
To Do's: See RemoveMethod(DB_Method)'s to do's. |
![]() ![]() | RemoveComplexTypeLink |
Removes the specified complex type link from the database.
To Do's: See RemoveMethod(DB_Method)'s to do's. |
![]() ![]() | RemoveILOpInfo |
Removes the specified IL op info from the database.
To Do's: See RemoveMethod(DB_Method)'s to do's. |
![]() ![]() | RemoveLocalVariable |
Removes the specified local variable from the database.
To Do's: See RemoveMethod(DB_Method)'s to do's. |
![]() ![]() | RemoveMethod |
Removes the specified method from the database.
To Do's:
|
![]() ![]() | RemoveStaticField |
Removes the specified static field from the database.
To Do's: See RemoveMethod(DB_Method)'s to do's. |
![]() ![]() | RemoveStringLiteral |
Removes the specified string literal from the database.
To Do's: See RemoveMethod(DB_Method)'s to do's. |
![]() ![]() | RemoveType |
Removes the specified type from the database.
To Do's: See RemoveMethod(DB_Method)'s to do's. |
![]() ![]() | SubmitChanges |
Submits all changes to the database.
|
Name | Description | |
---|---|---|
![]() ![]() | DB |
The underlying data context (generated by the VS designer)
used to access the local Debug Database.
|
The output database has a fixed path. It is not any of the output databases in the output directories of this project or any referenced projects.
The data in the output database can be viewed directly in VS2013.
Steps for viewing debug database entries in VS2013
- Open the server explorer - Open the server explorer by going to View -> Server Explorer
- Add Connection... - Right click on Data Connections and choose "Add Connection..."
- Change the Data Source - Change the Data Source to "Microsoft SQL Server Database File".
- Select the database file - Browse for and select the debug database file.
- Done! - Done! Browse the data in the database as normal.
To modify the debug database structure (e.g. tables), add a connection (as above) to the Database.mdf file in this project. Then double click on any table to modify its structure and use the standard "Update table" features.
1DB_Method dbMethod = new DB_Method(); 2dbMethod.Id = MethodID; 3dbMethod.MethodSignature = methodSignature; 4dbMethod.Plugged = false; 5dbMethod.ASMStartPos = -1; 6dbMethod.ASMEndPos = -1; 7DebugDatabase.AddMethod(dbMethod);