mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-12 01:20:13 +03:00
Fix incorrectly adding watches of subfolders of currently loading directory.
WIP process id picker.
This commit is contained in:
@@ -1094,6 +1094,9 @@ DebuggerPlugin::needsToResolveInputs( nlohmann::json& json ) {
|
||||
auto it = mDapInputs.find( id );
|
||||
if ( it != mDapInputs.end() )
|
||||
inputs[it->first] = it->second;
|
||||
} else if ( String::contains( val, "${pid}" ) ) {
|
||||
DapConfigurationInput dci{ "pid", "Process ID", "pid", "", {} };
|
||||
inputs["pid"] = dci;
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -1531,6 +1534,29 @@ void DebuggerPlugin::prepareAndRun( DapTool debugger, DapConfig config,
|
||||
} );
|
||||
}
|
||||
|
||||
UIWidget* DebuggerPlugin::processIdPicker() {
|
||||
static constexpr auto PROCESS_PICKER_LAYOUT = R"html(
|
||||
<window id="process_picker" lw="450dp" lh="450dp" padding="4dp" window-title="@string(list_of_processes, List of Processes)">
|
||||
<vbox lw="mp" lh="mp">
|
||||
<hbox lw="mp" lh="wc" margin-bottom="4dp">
|
||||
<TextView text="@string(filter_semicolon, Filter:)" lh="mp" />
|
||||
<TextInput lw="0dp" lw8="1" />
|
||||
</hbox>
|
||||
<TableView lw="mp" lh="0dp" lw8="1" />
|
||||
<hbox class="buttons" lw="mp" lh="wc" margin-top="4dp">
|
||||
<PushButton id="attach_to_process" text="@string(attach_to_process, Attach to Process)" />
|
||||
<PushButton id="update_process_list" text="@string(update_list, Update List)" margin-left="4dp" />
|
||||
<Widget lw="0dp" lw8="1" />
|
||||
<PushButton id="cancel_pick" text="@string(cancel, Cancel)" />
|
||||
</hbox>
|
||||
</vbox>
|
||||
</window>
|
||||
)html";
|
||||
UIWidget* widget = getUISceneNode()->loadLayoutFromString( PROCESS_PICKER_LAYOUT );
|
||||
|
||||
return widget;
|
||||
}
|
||||
|
||||
std::optional<Command>
|
||||
DebuggerPlugin::debuggerBinaryExists( const std::string& debugger,
|
||||
std::optional<DapRunConfig> optRunConfig ) {
|
||||
|
||||
Reference in New Issue
Block a user